Set Button component to display: inline-block, to ensure it has the same height when applied to both button elements and anchor tags. (#9541)

This commit is contained in:
CJ Cenizal 2016-12-16 15:57:36 -08:00 committed by GitHub
parent 4938c5784e
commit 0b0a77b3a7
2 changed files with 5 additions and 6 deletions

View file

@ -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;
@ -14,7 +17,7 @@
&:disabled {
cursor: default;
pointer-events: none; // 1
pointer-events: none; /* 2 */
}
&:active:enabled {

View file

@ -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>