Skip to content
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

[Notification]: low-contrast styles block inline notification's pointer events #4804

Closed
2 tasks done
jendowns opened this issue Dec 2, 2019 · 1 comment · Fixed by #4805 or carbon-design-system/gatsby-theme-carbon#567

Comments

@jendowns
Copy link
Contributor

jendowns commented Dec 2, 2019

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

When the bx--inline-notification--low-contrast class is added to the InlineNotification component (for low-contrast settings), it introduces a :before pseudo selector with styling that spans the entire height + width of the component...

Screen Shot 2019-12-02 at 12 16 50 PM

This :before completely blocks out pointer events. You can quickly see this demonstrated on the current deployed gatsby-theme-carbon site, which uses the InlineNotification in low contrast mode.

Go here and try click on any link inside an InlineNotification: https://gatsby-theme-carbon.now.sh/components/InlineNotification

@jendowns
Copy link
Contributor Author

jendowns commented Dec 2, 2019

I have a fix for this that I can propose in a moment 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants