Skip to content

Commit

Permalink
fix(UIShell): reduce padding on header name to fix action button (#11687
Browse files Browse the repository at this point in the history
) (#12245)

* fix(UIShell): reduce padding on header name to fix action button(#11687)

UIShell: SideNav Rail w/header - reduce padding to fix width of action button

by: Animesh Samaiya (asamaiya00@gmail.com)

* fix(UIShell): use spacing tokens (#11687)

UIShell: SideNav Rail w/header - reduce padding to fix width of action button

    by: Animesh Samaiya (asamaiya00@gmail.com)

Co-authored-by: Alessandra Davila <adavila91@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 6, 2022
1 parent acead26 commit 1685995
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/styles/scss/components/ui-shell/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@use '../../../breakpoint' as *;
@use '../../../config' as *;
@use '../../../motion' as *;
@use '../../../spacing' as *;
@use '../../../theme' as *;
@use '../../../type' as *;
@use '../../../utilities/button-reset';
Expand Down Expand Up @@ -42,6 +43,9 @@
border: rem(1px) solid transparent;
transition: background-color $duration-fast-02,
border-color $duration-fast-02;
@include breakpoint-down('md') {
min-width: $spacing-09;
}
}

.#{$prefix}--header__action
Expand Down Expand Up @@ -137,6 +141,9 @@
text-decoration: none;
transition: border-color $duration-fast-02;
user-select: none;
@include breakpoint-down('md') {
padding: 0 $spacing-05;
}
}

a.#{$prefix}--header__name:focus {
Expand Down

0 comments on commit 1685995

Please sign in to comment.