Skip to content

Commit

Permalink
Set Button component to display: inline-block, to ensure it has the s…
Browse files Browse the repository at this point in the history
…ame height when applied to both button elements and anchor tags. (#9541)
  • Loading branch information
cjcenizal authored Dec 16, 2016
1 parent 4938c57 commit 0b0a77b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/ui_framework/components/button/_button.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/**
* 1. Disable for Angular.
* 1. Setting to inline-block guarantees the same height when applied to both
* button elements and anchor tags.
* 2. Disable for Angular.
*/
.kuiButton {
display: inline-block; /* 1 */
appearance: none;
padding: 4px 12px 5px;
font-size: $fontSize;
Expand All @@ -14,7 +17,7 @@

&:disabled {
cursor: default;
pointer-events: none; // 1
pointer-events: none; /* 2 */
}

&:active:enabled {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
Button element
</button>

<hr class="guideBreak">

<input
type="submit"
class="kuiButton kuiButton--basic"
value="Submit input element"
>

<hr class="guideBreak">

<a href="#" class="kuiButton kuiButton--basic">
Anchor element
</a>

0 comments on commit 0b0a77b

Please sign in to comment.