diff --git a/.changeset/strong-lies-impress.md b/.changeset/strong-lies-impress.md new file mode 100644 index 0000000000..c3cde09196 --- /dev/null +++ b/.changeset/strong-lies-impress.md @@ -0,0 +1,5 @@ +--- +"@navikt/ds-css": patch +--- + +Button: Using `` within `icon`-prop now supported. diff --git a/@navikt/core/css/button.css b/@navikt/core/css/button.css index 0f2e66779c..4fc8a05506 100644 --- a/@navikt/core/css/button.css +++ b/@navikt/core/css/button.css @@ -497,7 +497,7 @@ } /* Loader overrides */ -.navds-button .navds-loader { +.navds-button > .navds-loader { position: absolute; } diff --git a/@navikt/core/css/darkside/button.darkside.css b/@navikt/core/css/darkside/button.darkside.css index 2180354d5e..bde502a586 100644 --- a/@navikt/core/css/darkside/button.darkside.css +++ b/@navikt/core/css/darkside/button.darkside.css @@ -262,7 +262,7 @@ } /* Loader overrides */ -.navds-button .navds-loader { +.navds-button > .navds-loader { position: absolute; }