Skip to content

fix: address chrome 121 scrollbar style behaviour change#1787

Merged
dsmmcken merged 1 commit intomainfrom
dmckenzie_scrollbar_behaviour
Feb 9, 2024
Merged

fix: address chrome 121 scrollbar style behaviour change#1787
dsmmcken merged 1 commit intomainfrom
dmckenzie_scrollbar_behaviour

Conversation

@dsmmcken
Copy link
Copy Markdown
Contributor

@dsmmcken dsmmcken commented Feb 9, 2024

Chrome adopted offical support for scrollbar-color in chrome 121. However, if you have both scrollbar-color and ::webkit-scrollbar styling, they conflict and chrome will only honour the native styling. This is bad because the native chrome mac scrollbars become really small, and overlap too much with out golden-layout drag.

Our webkit styling forces scrollbars that match monaco and grid, and are preferred. By removing scrollbar-color native styling, our webkit styles work. We only had scrollbar-color to style firefox in dark mode (//applies to firefox only is no longer true), however the most recent versions of firefox appear to color scrollbars automatically based on the theme, so this is no longer necessary.

The crappy part here is since this is browser change, we will have to backport this for several active enterprise versions.

See:

Chrome adopted offical support for scrollbar-color in chrome 121. However, if you have both scrollbar-color and ::webkit-scrollbar styling, they conflict and chrome will only honour the native styling. This is bad because the native chrome mac scrollbars become really small, and overlap too much with out golden-layout drag.

Our webkit styling forces scrollbars that match monaco and grid, and are preferred. By removing `scrollbar-color` native styling, our webkit styles work. We only had scrollbar-color to style firefox in dark mode, however the most recent versions of firefox appear to color scrollbars automatically based on the theme, so this is no longer necessary.

The crappy part here is since this is browser change, we will have to backport this for several active enterprise versions.
@dsmmcken dsmmcken requested a review from mofojed February 9, 2024 16:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (434930a) 46.05% compared to head (aa03d4e) 46.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1787   +/-   ##
=======================================
  Coverage   46.05%   46.05%           
=======================================
  Files         628      628           
  Lines       37784    37784           
  Branches     9516     9516           
=======================================
  Hits        17400    17400           
  Misses      20330    20330           
  Partials       54       54           
Flag Coverage Δ
unit 46.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsmmcken dsmmcken enabled auto-merge (squash) February 9, 2024 17:24
@dsmmcken dsmmcken merged commit fa3a33d into main Feb 9, 2024
@dsmmcken dsmmcken deleted the dmckenzie_scrollbar_behaviour branch February 9, 2024 17:36
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 9, 2024
@dsmmcken dsmmcken self-assigned this Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants