-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernizes visual appearance of tabs #751
base: main
Are you sure you want to change the base?
Conversation
Unifies the banner and cta css styles used on multiple pages. Moves the element to a common location so the it can be found in the source easily and be reused across pages.
Removes figure-gray-secondary-alt in favor of figure-gray-tertiary which already had the exact same color values. Fixes fill-quaternary to have different colors in dark and light mode.
Updates the .interactive-tabs class to take a more layered appearance. Hover and selection states are visually distinct and rely on the existing color palette for layers. Adds support for "prefers-contrast: more" to use the previous higher contrast style. Moves the css for tabs to a common location so it can be easily found and reused between pages.
|
@swift-ci test |
|
From the screen shots, the contrast seems very low for the default in both light and dark mode. Possibly a higher contrast border on the selected item would make it more clear which item is selected. |
|
This PR looks like moving into the right direction to me. |
|
@rauhul As @dempseyatgithub asked, can we increase the contrast between active and inactive tabs? If you're unable to do it let me know and I'll make the change before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the contrast comment above, let's get the other PRs this depends on merged first so it's easier to review the relevant changes.
| border-radius: var(--border-radius); | ||
| color: var(--color-text); | ||
|
|
||
| // FIXME: Sink prefers-constrast lower into the color stack so each element doesn't need to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // FIXME: Sink prefers-constrast lower into the color stack so each element doesn't need to | |
| // FIXME: Sink prefers-contrast lower into the color stack so each element doesn't need to |




Updates the .interactive-tabs class to take a more layered appearance.
Hover and selection states are visually distinct and rely on the
existing color palette for layers.
Adds support for "prefers-contrast: more" to use the previous higher
contrast style.
Moves the css for tabs to a common location so it can be easily found
and reused between pages.
Builds on top of #743 and #749