Skip to content
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

Button: Constructed stylesheet doesn't rewrite nesting selector (&) #1859

Open
1 task done
Maximilian-R opened this issue Dec 4, 2024 · 0 comments
Open
1 task done
Labels

Comments

@Maximilian-R
Copy link
Contributor

Maximilian-R commented Dec 4, 2024

Bug already reported?

  • I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug

Core

Component name

button

Description

the button component styles includes some nested rules, eg:

{AFBAB80B-CD7F-4C54-8EAD-24042DB4A55E}

The css is using the nesting selelctor which only is supported from iOS 17.2, causing lower version to not apply the styles.

Steps To Reproduce

Reproduce with Constructed Stylesheet

  1. with browserstack, open a device with iOS < 17.2 to make sure constructed stylesheets will be used.
  2. go to https://seb.se/juridik-och-sakerhet/sa-har-anvander-vi-kakor
  3. scroll to the button for "Ändra inställningar och samtycke för kakor"
  4. inspect the element - nested rules won't appear in the element style tab.

Reproduce with Inline Stylestags (polyfill for Constructed Stylesheet)

  1. with browserstack, open a device with iOS < 16.4 to make sure constructed stylesheets will be replaced by inline style tags.
  2. go to https://seb.se/juridik-och-sakerhet/sa-har-anvander-vi-kakor
  3. scroll to the button for "Ändra inställningar och samtycke för kakor"
  4. inspect the element - nested rules can be found in the last inline style-tag but it won't appear in the element style tab.

Current Behaviour

Missing styles. Eg no focus/hover/active state nor text-overflow on text for the Button component for iOS <17.2

Expected Behaviour

css-styles should be compiled to support at least iOS 15.

@Maximilian-R Maximilian-R changed the title polyfill for constructed stylesheet does'nt rewrite nesting selector (&) constructed stylesheet does'nt rewrite nesting selector (&) Dec 4, 2024
@EldRoos EldRoos changed the title constructed stylesheet does'nt rewrite nesting selector (&) Button: Constructed stylesheet doesn't rewrite nesting selector (&) Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant