Skip to content

Commit 9afa81b

Browse files
authoredFeb 12, 2019
fix(ui5-radiobutton): focus outline in Compact & RTL (#18)
1 parent 37ea08a commit 9afa81b

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed
 

‎packages/main/src/themes/base/RadioButton.less

+6-19
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ ui5-radiobutton {
116116

117117
input {
118118
margin: 0; /* FF puts margin */
119-
-webkit-appearance: none;
120119
visibility: hidden;
120+
width: 0;
121121
}
122122
}
123123

@@ -188,35 +188,22 @@ ui5-radiobutton {
188188
}
189189
}
190190

191-
/* RTL */
192-
:host([dir=RTL]) {
193-
.sapMRb.sapMRbHasLabel:focus:before {
194-
left: 0;
195-
right: 0.625rem;
196-
}
197-
}
198-
/* RTL in Compact */
199-
:host([dir=RTL]) {
200-
.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
201-
left: 0;
202-
right: 0.375rem;
203-
}
204-
}
205-
206191
/* ListItem Context */
207192
:host(ui5-radiobutton.radioButtonInListItem) .sapMRb .sapMRbInner .sapMRbSvgOuter {
208193
fill: @sapUiListBackground;
209194
}
210195

211-
[dir=RTL] {
196+
/* RTL */
197+
span[dir="rtl"] {
212198
.sapMRb.sapMRbHasLabel:focus:before {
213199
left: 0;
214200
right: 0.625rem;
215201
}
216202
}
203+
217204
/* RTL in Compact */
218-
[dir=RTL] {
219-
.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
205+
span[dir="rtl"] {
206+
&.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
220207
left: 0;
221208
right: 0.375rem;
222209
}

0 commit comments

Comments
 (0)
Please sign in to comment.