Tommertom / svelte-ionic-npm

NPM package that goes along with Ionic Svelte integration demo
MIT License
19 stars 0 forks source link

Custom classes in Alert (and similar components) - do not work #21

Closed Tommertom closed 1 year ago

Tommertom commented 1 year ago
.my-custom-class .alert-wrapper {
  background: #e5e5e5;
}

    const alert = await alertController.create({
                    header: 'Alert! Game state will be lost!',
                    cssClass: 'my-custom-class',

Will not work. Probably because Svelte renames the styles. Probably need to put this in a global style.

Tommertom commented 1 year ago

Yup - put them in <style global> somewhere in layout.svelte or so, to apply

Tommertom commented 1 year ago

done