CodeSnippet: Remove or improve the overflow indicators #8059
Labels
adopter: product
Work-stream that directly helps a Product team.
component: code-snippet
package: @carbon/react
@carbon/react
proposal: open
This request has gone through triaging. We're determining whether we take this on or not.
role: design ✏️
type: enhancement 💡
version: 11
Issues pertaining to Carbon v11
Summary
The CodeSnippet component has grey shading zones on the left and right zones of scrollable content.
There needs to be a better way to indicate scrollable (see #8057 and #7574).
And it needs to be applicable for both horizontal and vertical scrollable content.
Justification
The shading zones are of little (and sometimes no) use.
They are very subtle and easily overlooked.
If there is no content in the shading zones they have no effect at all (there is nothing to shade).
On all platforms besides apple scrollbars are always visible (indicating scrollable content) and the shading zones are not needed.
Apple users are aware/used to hidden scrollbars and have the option of turning them on (https://www.matuzo.at/blog/css-pro-tip-for-mac-users-always-show-scroll-bars-in-macos/)
The overflow indicators should be removed, and replaced with a more stable/noticeable option.
One solution would be to always force CodeSnippet to show scrollbars.
This would make it consistent across platforms (apple and others) and clearly show what scrolling is available.
Desired UX and success metrics
Testcase:
Given a CodeSnippet with data that overflows its container; it would be nice to be able to identify that scrolling to view more data is possible.
"Must have" functionality
No matter what the data is there needs to be some way to know that scrolling is an option.
Specific timeline issues / requests
nope
Available extra resources
What resources do you have to assist this effort?
Maybe
The text was updated successfully, but these errors were encountered: