Skip to content

Commit

Permalink
🐛 Using 'loader' inside 'icon'-prop broke layout caused by position a…
Browse files Browse the repository at this point in the history
…bsolute (#3515)
  • Loading branch information
KenAJoh authored Jan 22, 2025
1 parent 90f6178 commit d29509d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-lies-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-css": patch
---

Button: Using `<Loader />` within `icon`-prop now supported.
2 changes: 1 addition & 1 deletion @navikt/core/css/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
}

/* Loader overrides */
.navds-button .navds-loader {
.navds-button > .navds-loader {
position: absolute;
}

Expand Down
2 changes: 1 addition & 1 deletion @navikt/core/css/darkside/button.darkside.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
}

/* Loader overrides */
.navds-button .navds-loader {
.navds-button > .navds-loader {
position: absolute;
}

Expand Down

0 comments on commit d29509d

Please sign in to comment.