Skip to content

Commit

Permalink
🐛 Sentrering av checkmark i Checkbox (#2682)
Browse files Browse the repository at this point in the history
* 🐛 Checkmark er nå alltid sentrert i checkbox

* 📝 Changeset

* Update @navikt/core/css/form/radio-checkbox.css
  • Loading branch information
KenAJoh authored Jan 31, 2024
1 parent 56abe56 commit fdfdebf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-peas-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-css": patch
---

Checkbox: I noen edgecaser ved bruk av shadow-dom ble ikke checkmark sentert i Checkbox
4 changes: 4 additions & 0 deletions @navikt/core/css/form/radio-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
height: 1.5rem;
transform: translate(var(--a-spacing-1-alt));
pointer-events: none;

/* Fixed edcase where when using in shadow-dom, svg will not center */
display: flex;
align-items: center;
}

.navds-checkbox--small .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
Expand Down

0 comments on commit fdfdebf

Please sign in to comment.