-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Desktop: Accessibility: Improve scrollbar contrast #11708
Merged
personalizedrefrigerator
merged 8 commits into
laurent22:dev
from
personalizedrefrigerator:pr/desktop/accessibility/scrollbar-contrast
Jan 27, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
071c448
Desktop: Improve scrollbar contrast
personalizedrefrigerator b29c8c1
Reverting CSS refactorings not needed for this PR
personalizedrefrigerator a8db45d
Fix mobile
personalizedrefrigerator 4c64c4b
Slightly increase contrast for sidebar scrollbars
personalizedrefrigerator fea0a35
Fix types
personalizedrefrigerator d8d2626
Give scrollbars a minimum of 3:1 contrast
personalizedrefrigerator b342d45
Adjust contrast again for more color consistency in the default dark
personalizedrefrigerator 28135ee
Rename derivedColors -> withDerivedColors
personalizedrefrigerator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
@use "./setting-description.scss"; | ||
@use "./setting-label.scss"; | ||
@use "./setting-header.scss"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,14 +137,13 @@ export default function(theme: any, options: Options = null) { | |
border: none; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
background: rgba(100, 100, 100, 0.3); | ||
border-radius: 5px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: Setting |
||
background: ${theme.scrollbarThumbColor}; | ||
} | ||
::-webkit-scrollbar-track:hover { | ||
background: rgba(0, 0, 0, 0.1); | ||
} | ||
::-webkit-scrollbar-thumb:hover { | ||
background: rgba(100, 100, 100, 0.7); | ||
background: ${theme.scrollbarThumbColorHover}; | ||
} | ||
|
||
${maxWidthCss} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
_scrollbar2
follows the naming pattern for RSCSS helper classes. RSCSS also suggests including all helpers in a single file calledhelpers
. For now,_scrollbar2
is included inmain.scss
(near the other scrollbar logic). If desired, I can move it to a newhelpers.scss
file.