Skip to content

Commit

Permalink
fix: support small tertiary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Mar 30, 2021
1 parent 5e42e62 commit b9df6ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ exports[`Button scss have to match default theme snapshot 1`] = `
.dnb-button--tertiary .dnb-button__icon {
align-self: flex-start;
margin-top: 0.75rem; }
.dnb-button--tertiary.dnb-button--size-small .dnb-button__icon {
margin-top: 0.25rem; }
.dnb-button--tertiary.dnb-button--size-large .dnb-button__icon,
.dnb-button--tertiary:not(.dnb-button--size-large) .dnb-button__icon.dnb-icon--medium {
margin-top: 0.5rem; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
align-self: flex-start;
margin-top: 0.75rem;
}
&.dnb-button--size-small .dnb-button__icon {
margin-top: 0.25rem;
}

// Ensure tertiary button has medium size when size is large
&.dnb-button--size-large .dnb-button__icon,
Expand Down

0 comments on commit b9df6ee

Please sign in to comment.