Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit 7cb9e91

Browse files
Magdalena Grigorovajoneff
authored andcommitted
fix(buttonGroupd): add focus state to button in disabled button group telerik/kendo#7846
1 parent 444d544 commit 7cb9e91

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

scss/button/_layout.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@
143143
z-index: 2;
144144
}
145145

146+
&.k-state-disabled .k-button,
147+
.k-state-disabled {
148+
pointer-events: auto;
149+
}
150+
146151
.k-group-start,
147152
.k-item:first-child .k-button {
148153
@include border-left-radius();

scss/button/_theme.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,22 @@
105105

106106
// Selected hover state
107107
.k-button:active:hover,
108-
.k-button.k-state-active:hover
108+
.k-button.k-state-active:hover,
109109
> input[type="radio"]:hover + .k-button,
110110
> input[type="checkbox"]:hover + .k-button {
111111
@include fill( $selected-text, $selected-bg, $selected-border, none );
112112
}
113113

114+
// Disabled state
115+
&.k-state-disabled .k-button,
116+
.k-state-disabled {
117+
118+
&:not(.k-state-active),
119+
&:not(.k-state-active):hover {
120+
@include fill( $button-text, $button-bg, $button-border, $button-gradient );
121+
}
122+
}
123+
114124
}
115125

116126
//SplitButton

0 commit comments

Comments
 (0)