Skip to content

Commit

Permalink
Datepicker action button and fieldbase to only have multilne action b…
Browse files Browse the repository at this point in the history
…utton margin top
  • Loading branch information
astrit committed Jan 16, 2025
1 parent 2010c2d commit 53b5a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/core/src/components/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export class GdsDatepicker extends GdsFormControlElement<Date> {
slot="action"
size="small"
rank="tertiary"
variant=${this.invalid ? 'negative' : ''}
aria-label="${msg('Open calendar modal')}"
aria-haspopup="menu"
aria-expanded=${this.open}
Expand Down
2 changes: 1 addition & 1 deletion libs/core/src/primitives/field-base/field-base.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const styles = css`
block-size: var(--gds-space-l);
}
slot[name='action']::slotted([gds-element]) {
.multiline slot[name='action']::slotted([gds-element]) {
margin-top: -4px;
}
Expand Down

0 comments on commit 53b5a11

Please sign in to comment.