We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b4a4d commit 52fb71aCopy full SHA for 52fb71a
src/main/css/index.css
@@ -22,6 +22,7 @@
22
* 2. Inherit text color from ancestor.
23
* 3. Inherit font styles from ancestor.
24
* 4. Prevent button text from being selectable.
25
+ * 5. Turn off pointer events when button is disabled.
26
*/
27
28
.Button {
@@ -34,7 +35,6 @@
34
35
border-width: var(--Button-border-width);
36
box-sizing: border-box; /* 1 */
37
color: var(--Button-text-color); /* 2 */
- display: inline-block;
38
font: var(--Button-font); /* 3 */
39
margin: 0;
40
padding: var(--Button-padding);
@@ -76,6 +76,6 @@
76
.Button:disabled,
77
.Button.onDisabled {
78
cursor: default;
79
- pointer-events: none;
+ pointer-events: none; /* 5 */
80
opacity: var(--Button_onDisabled-opacity);
81
}
0 commit comments