Skip to content

Commit

Permalink
fix: make sure buttons wrap on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Rogan committed Oct 9, 2020
1 parent 87a0c38 commit 05c7f87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wmcads/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $btn-transition: ease-in-out background-color 0.2s, ease-in-out border 0.2s;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
@media screen and (max-width: $breakpoint-sm) {
white-space: normal;
}

&:hover {
background-color: get-color(primary, 30, dark);
Expand Down
5 changes: 5 additions & 0 deletions src/www/pages/components/buttons/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
text: "Call to action icon disabled button",
iconRight: "general-icon-chevron-right",
disabled: true
}),
cta({
text: "Long Call to action icon button Lorem ipsum dolor sit amet",
iconRight: "general-icon-chevron-right",
disabled: false
})
])
}}
Expand Down

0 comments on commit 05c7f87

Please sign in to comment.