Skip to content

Commit

Permalink
Merge pull request #795 from bolt-design-system/fix/BDS-464-prevent-n…
Browse files Browse the repository at this point in the history
…avbar-icon-being-overlapped-safari-9

BDS-464 prevent navbar icon being overlapped safari 9
  • Loading branch information
remydenton committed Jul 9, 2018
2 parents d8d5099 + f8bc500 commit eba0b4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/bolt-navbar/src/navbar.scss
Expand Up @@ -118,7 +118,6 @@ bolt-navbar {
@include bolt-margin-right(medium); // Maintain space between items
padding-bottom: $bolt-navbar-vspacing-small;
align-self: center;
flex-shrink: 0;
display: flex;
flex-shrink: 1; // make sure the title can wrap to multiple lines and shrink if needed.
flex-wrap: nowrap;
Expand Down Expand Up @@ -167,6 +166,10 @@ bolt-navbar {

.c-bolt-navbar__title-icon {
@include bolt-margin(0 xsmall 0 0);

// Fix cross-browser bug where icon shrinks below its minimum natural width - see https://github.com/philipwalton/flexbugs#flexbug-1
flex-shrink: 0;
flex-basis: auto;
}

.c-bolt-navbar__title-text {
Expand Down

0 comments on commit eba0b4c

Please sign in to comment.