Skip to content

Commit 52fb71a

Browse files
committed
Fixed display
1 parent 37b4a4d commit 52fb71a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/css/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* 2. Inherit text color from ancestor.
2323
* 3. Inherit font styles from ancestor.
2424
* 4. Prevent button text from being selectable.
25+
* 5. Turn off pointer events when button is disabled.
2526
*/
2627

2728
.Button {
@@ -34,7 +35,6 @@
3435
border-width: var(--Button-border-width);
3536
box-sizing: border-box; /* 1 */
3637
color: var(--Button-text-color); /* 2 */
37-
display: inline-block;
3838
font: var(--Button-font); /* 3 */
3939
margin: 0;
4040
padding: var(--Button-padding);
@@ -76,6 +76,6 @@
7676
.Button:disabled,
7777
.Button.onDisabled {
7878
cursor: default;
79-
pointer-events: none;
79+
pointer-events: none; /* 5 */
8080
opacity: var(--Button_onDisabled-opacity);
8181
}

0 commit comments

Comments
 (0)