Skip to content

Commit

Permalink
Remove CSS declarations which change default scrollbar width
Browse files Browse the repository at this point in the history
Setting the declaration "scrollbar-width: thin" has a legitimate accessibility concern, though doing so could have made sense previously for some reason. Let's prefer each OS and its desktop environments' setting over Element's aesthetic view.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width#accessibility

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed Dec 1, 2024
1 parent f335d70 commit 9759f13
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions res/css/structures/_AutoHideScrollbar.pcss
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
/*
Copyright 2018-2024 New Vector Ltd.
Copyright 2024 Suguru Hirahara
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
*/

/* make any scrollbar grey and thin */
/* make any scrollbar grey */
html {
scrollbar-color: $scrollbar-thumb-color transparent;
}
/* scrollbar-width is not inherited (but -color is, why?!), */
/* so declare it on every element */
* {
scrollbar-width: thin;
}

::-webkit-scrollbar {
width: 6px;
height: 6px;
}

::-webkit-scrollbar-thumb {
border-radius: 3px;
Expand Down

0 comments on commit 9759f13

Please sign in to comment.