RocketCommunicationsInc / astro

Astro UXDS is a collection of guidelines, patterns and components for designing space-based user interface applications.
https://astrouxds.com
Other
113 stars 25 forks source link

rux-global-status-bar: Cannot style scroll bar in container part #1186

Closed ascala07 closed 1 year ago

ascala07 commented 1 year ago

Describe the bug If the container part is targeted on the rux-global-status-bar and the overflow is changed from hidden to auto, there is no astro styling on the scroll bar. I believe I can also not target the pseudo element after styling the part (i.e. #rux-global-status-bar::part(container)::--webkit-scroll-bar) because of this issue https://github.com/w3c/csswg-drafts/issues/4530. So, there is no way to style it to be astro compliant.

To Reproduce Steps to reproduce the behavior:

  1. Create a rux-global-status-bar
  2. Change the overflow: hidden to overflow: auto
  3. Shrink the status bar so that it overflow and scroll bar is visible
  4. No style is there

Current behavior If a scroll bar appears in the status bar it is unstyled.

Expected behavior If a status bar appears, it should be styled or least be able to style it.

Screenshots image

CodeSandbox If applicable, please provide a CodeSandbox or other online code editor tool link that contains an example of the bug.

Environment (please complete the following information):

Additional context

micahjones13 commented 1 year ago

Hey @ascala07, thanks for bringing this up! A fix has been merged in and will be included in the todays release (7.15.0).

ascala07 commented 1 year ago

Hey @ascala07, thanks for bringing this up! A fix has been merged in and will be included in the todays release (7.15.0).

Thank you for the quick turn around!