Skip to content

Commit

Permalink
Datepicker: 💄 css layer changes & remove extra border
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianNymark committed Nov 20, 2024
1 parent 6678a47 commit 7043ec4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions @navikt/core/css/darkside/date.darkside.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@
}

.navds-date__field-input {
padding-right: var(--ax-spacing-12);
&.navds-text-field__input {
padding-right: var(--ax-spacing-12);
}

.navds-form-field--small & {
padding-right: var(--ax-spacing-8);
Expand Down Expand Up @@ -288,8 +290,6 @@
align-items: center;
position: relative;
width: fit-content;
border: 1px solid var(--ax-border-default);
border-radius: var(--ax-border-radius-medium);

&:has(.navds-date__field-input:focus-visible) {
border-radius: var(--ax-border-radius-medium);
Expand Down
3 changes: 3 additions & 0 deletions @navikt/core/css/darkside/form/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
@import "./combobox.darkside.css" layer(aksel.forms.component);
@import "./form-summary.darkside.css" layer(aksel.forms.component);
@import "./form-progress.darkside.css" layer(aksel.forms.component);

/* TODO: remove this extra dot for date (shuffle code location) */
@import "../date.darkside.css" layer(aksel.forms.components);
1 change: 0 additions & 1 deletion @navikt/core/css/darkside/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
@import "./modal.darkside.css" layer(aksel.components);
@import "./pagination.darkside.css" layer(aksel.components);
@import "./popover.darkside.css" layer(aksel.components);
@import "./date.darkside.css" layer(aksel.components);
@import "./tag.darkside.css" layer(aksel.components);
@import "./timeline.darkside.css" layer(aksel.components);
@import "./tooltip.darkside.css" layer(aksel.components);
Expand Down

0 comments on commit 7043ec4

Please sign in to comment.