neo4j-documentation / docs-ui

Mozilla Public License 2.0
4 stars 23 forks source link

Extend tabs #52

Closed recrwplay closed 3 years ago

recrwplay commented 3 years ago

Modifies tabs block so that once you've defined a [.tabbed-example] section you can append any text to include-with- to define a new tab. Unless stated in the js the tab title is initial-capitalized.

Although I think this can be merged as-is, there are two areas we could improve now/in future

  1. For anything other than capitalization of the term, we need to update the switch statement. Is there a better way to handle that?
  2. GDS displays a tab when there is only one tab, other projects currently don't. Could we define this with something like a page attribute in the playbook?