AlaskaAirlines / auro-checkbox

Custom element for the purpose of allowing users to select one or more options of a limited number of choices.
https://auro.alaskaair.com/components/auro/checkbox
Apache License 2.0
0 stars 1 forks source link

CSS is being imported to the component as an object #109

Closed jason-capsule42 closed 1 year ago

jason-capsule42 commented 1 year ago

Please verify the version of auro-checkbox you have installed

2.0.2

Please describe the bug

The main JS file is importing the CSS using the old object based notation. This method does not work when the component is used as a JS import into another component without throwing an error regarding unsafeCSS.

Reproducing the error

None

Expected behavior

The CSS import should use the modern notation.

What browsers are you seeing the problem on?

No response

Additional context

No response

Exit criteria

CSS import should be done using

  static get styles() {
    return [styleCss];
  }