Skip to content

Commit

Permalink
fix(styles): new focus mixin integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
davidritter-dotcom committed Mar 28, 2024
1 parent 94d6e74 commit d1334c7
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions packages/styles/src/components/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
@use './../variables/components/datepicker';
@use './../variables/components/forms';
@use './../variables/commons';
@use './../variables/spacing';
@use './../mixins/icons' as icons-mx;
@use './../mixins/utilities';

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

Expand All @@ -21,8 +23,9 @@ ngb-datepicker.dropdown-menu {
ngb-datepicker-navigation {
justify-content: space-between;

button.ngb-dp-arrow-btn:focus-visible {
outline: forms.$input-focus-outline-thickness solid var(--post-contrast-color);
button.ngb-dp-arrow-btn {
@include utilities.focus-style();
outline-width: spacing.$size-line !important;
}
}

Expand All @@ -35,9 +38,10 @@ ngb-datepicker-navigation-select.ngb-dp-navigation-select {
background-position: right;

&:focus {
outline-style: solid;
box-shadow: none;
border-radius: commons.$border-radius;
background-color: transparent;
box-shadow: inset 0 0 0 commons.$border-thick color.$black;
@include utilities.focus-style();
}

+ select {
Expand Down Expand Up @@ -108,7 +112,9 @@ span.ngb-dp-navigation-chevron {
height: 40px !important;
line-height: 40px;
&.active:not(.bg-primary) {
outline: forms.$input-focus-outline-thickness solid var(--post-contrast-color);
@include utilities.focus-style();
outline-style: solid;
border-radius: commons.$border-radius !important;
}
}
}
Expand Down Expand Up @@ -161,7 +167,13 @@ span.ngb-dp-navigation-chevron {
transform: none;
}
&:focus-visible {
outline: forms.$input-focus-outline-thickness solid var(--post-contrast-color);
outline: none;
& .pi {
@include utilities.focus-style();
outline-style: solid;
border-radius: commons.$border-radius !important;
outline-offset: spacing.$size-micro;
}
}
}

Expand Down

0 comments on commit d1334c7

Please sign in to comment.