PaloAltoNetworks / PaloAltoNetworks/docusaurus-openapi-docs

Allow hiding codeBlockTitle in 2.0

Open
#536 7 comments 0 reactions 1 assignee View on GitHub

@blindaa121 is already working on this.

Since Apr 1, 2024.

enhancement roadmap
Dominant language
TypeScript
Stars
1.1k
Forks
315
Avg merge
7d 5h
Merged PRs (30d)
7

Description

Is your feature request related to a problem?

I am testing out the 2.0 beta, and so far it is much easier to customize and style. 👏

But, I see that a code demo title has been added, and it does not use a BEM class, so it's difficult to hide. I'd like to not show that title, to keep the same behavior as before.

Describe the solution you'd like

Add a BEM-style class to the codeBlockTitle component, so that I can hide it with display: none.

Describe alternatives you've considered
Additional context

Also, after hiding it, I'm getting fuzzy top borders in the corners because of this style:

.codeBlockTitle_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module + .codeBlockContent_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module .codeBlock_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.