PaloAltoNetworks / PaloAltoNetworks/docusaurus-openapi-docs
Allow hiding codeBlockTitle in 2.0
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.