-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: .bx--content background disruptive for dark themes #9877
Comments
@carbon-design-system/design is there context around why this class applies the background? Should we modify it to not set a background? |
I have no clue where that class is coming from. It definitely shouldn't be used within the progress indicator. I think it may be part of the contained tab component though. I'm not sure why it would be showing up in UI Shell either. |
It performs layout in relation to the shell header and side-nav. Introduced as part of the shell here: 3ee76bd#diff-4ea1e7accf7f77430fe69e984a086fe5fe13f048d2fe6de761960d3444cbb057 |
The PR you're linking to was just porting over existing UI Shell styles into our new |
Just wanted to +1 what @brunnerh shared, the I think the tl;dr for this component is that we wanted a way to wire up the "skip to content" links with the "main" content area on the page. |
* fix(content): remove background color from .bx--content Fixes #9877 * chore: update snaps Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Taylor Jones <taylor.jones826@gmail.com> Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
This issue was fixed by #10992 but was not auto-closed by GitHub. Can an admin close this? |
I can :) |
Package
carbon-components
Browser
Chrome
Package version
v10.46.0
Description
The
.bx--content
container which is part of the UI shell (not really documented properly anywhere and not used in the UI shell examples) has a background color that causes poor contrast/visibility in darker themes. For some components it clashes with existing colors.Examples for the different themes:
Maybe
.bx--content
should not set a background at all?CodeSandbox example
https://codesandbox.io/s/bx--content-l1bnj
Steps to reproduce
.bx--content
)ProgressIndicator
to it which use conflicting colorsCode of Conduct
The text was updated successfully, but these errors were encountered: