seb-oss / green

Green is an open-source design system built by SEB.
https://storybook.seb.io/
Apache License 2.0
37 stars 55 forks source link

safari <16.4: Constructed Stylesheet is not supported and throws error #1682

Closed Maximilian-R closed 3 weeks ago

Maximilian-R commented 1 month ago

Bug already reported?

For which framework/library you are reporting the bug

Core

Component name

button (and more)

Description

Following error is raised in safari <16.4 since Constructed Stylesheets is not supported:

TypeError: Illegal Constructor (CSSStylSheet)

Steps To Reproduce

Run core-components in any environment using a device with a safari version lower than 16.4.

Current Behaviour

JS throws error and stops execution - component is not rendered.

Expected Behaviour

Component is rendered.