patternfly-react
patternfly-react copied to clipboard
docs(Page): add example showing different type prop variants
What: Closes #9868
Additional issues:
Section with type="subnav" for horizontal subnav navigationhas dark text on a dark background. The Core example overrides the color with this class:Should we do something similar in React? In V6 it will look fine, but not in V5.
Section with type="nav" for tertiary navigation: thetertiarynavigation was removed in V6, we should rename it in the upcoming React example for V6 and the Core V6 example too - but what is thetype="nav"used for in V6 if not tertiary navigation?
Preview: https://patternfly-react-pr-10352.surge.sh
A11y report: https://patternfly-react-pr-10352-a11y.surge.sh
Yeah, the example is missing in the preview for some reason. In all the new branches I base on current main I see this compilation warning related to the new Dropdown template:
I don't know if it is related to why the example is not showing in the preview though.
About the -group section, as you say, it is not a type prop option of the PageSection, but a PageGroup component, and there is an example already for that. So I did not include the PageGroup there on purpose.
#10416 should fix this problem, let's do a rebase of this PR to see if it resolves the issue.