Skip to content

Commit

Permalink
fix(styles): Datepicker year select overflow (#2319)
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq authored Nov 29, 2023
1 parent e3c9029 commit 0ff6499
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-otters-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed overflow on datepicker select variant.
4 changes: 3 additions & 1 deletion packages/styles/src/components/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
@use './../variables/commons';
@use './../mixins/icons' as icons-mx;

@use './../themes/bootstrap/core' as b;

ngb-datepicker {
// Conversion for compatibility
--bs-light: var(--post-light);
Expand All @@ -24,7 +26,7 @@ ngb-datepicker-navigation-select.ngb-dp-navigation-select {
flex: 0 1 auto;

select {
padding-right: 1rem;
padding-right: b.$form-select-padding-x * 2;
border: 0;
background-position: right;

Expand Down

0 comments on commit 0ff6499

Please sign in to comment.