-
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
fix(code-snippet): use Carbon focus outline and reposition scroll bar #5233
fix(code-snippet): use Carbon focus outline and reposition scroll bar #5233
Conversation
Deploy preview for the-carbon-components ready! Built with commit 5827f26 https://deploy-preview-5233--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react failed. Built with commit 80f4743 https://app.netlify.com/sites/carbon-components-react/deploys/5e38b83345480100084fe307 |
Deploy preview for carbon-elements ready! Built with commit 80f4743 |
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.
Tiny nit, other than that it looks great in Chrome / Firefox / Safari with or without scrollbars always enabled.
packages/components/src/components/code-snippet/_code-snippet.scss
Outdated
Show resolved
Hide resolved
13fa6bb
to
5827f26
Compare
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.
looks good to me ! 🙌🏻 thanks for figuring this out
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.
LGTM 👍 - Thanks @emyarod!
Got a green light from @emyarod to mark this as "status: ready to merge". |
Closes #2304
Closes #5219
This PR adds Carbon focus styles to the single line code snippet instead of using the browser default. The component is also repositioned to account for the scroll bar across different platforms
Testing / Reviewing
Ensure that the focus style is visually correct, and that scroll bars look correct on all platforms (including using various scroll bar preferences in macOS System Preferences > General)