Skip to content

Wrong color on <rux-ruler> of <rux-timeline> in light theme #1367

@mzyy94

Description

@mzyy94

Describe the bug
Wrong .ruler-time background color in light theme since @astrouxds/astro-web-components 7.25.0 due to #1363 change.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://astro-components.netlify.app/iframe.html?globals=&id=beta-timeline-beta--default&viewMode=story'
  2. Replace the 'dark-theme' class in <html> with 'light-theme'
  3. See <rux-ruler> displayed in hard-to-see colors

Current behavior
The dark color (#2c3d4d) is displayed in both light and dark themes.

Expected behavior

It looks better with variable var(--color-background-base-header) applied.

Screenshots

Image

CodeSandbox

n/a

Environment (please complete the following information):

  • Browser [chrome, safari]
  • @astrouxds/astro-web-components version [7.25.0]

Additional context

CSS shadow part is not provided in <rux-ruler>, so there is no workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected or is broken.designRelated to design - Needs design or UX inputfigmaRelated to Figma

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions