Skip to content

Commit

Permalink
fix(ui5-radiobutton): focus outline in Compact & RTL (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 authored Feb 12, 2019
1 parent 37ea08a commit 9afa81b
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions packages/main/src/themes/base/RadioButton.less
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ ui5-radiobutton {

input {
margin: 0; /* FF puts margin */
-webkit-appearance: none;
visibility: hidden;
width: 0;
}
}

Expand Down Expand Up @@ -188,35 +188,22 @@ ui5-radiobutton {
}
}

/* RTL */
:host([dir=RTL]) {
.sapMRb.sapMRbHasLabel:focus:before {
left: 0;
right: 0.625rem;
}
}
/* RTL in Compact */
:host([dir=RTL]) {
.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
left: 0;
right: 0.375rem;
}
}

/* ListItem Context */
:host(ui5-radiobutton.radioButtonInListItem) .sapMRb .sapMRbInner .sapMRbSvgOuter {
fill: @sapUiListBackground;
}

[dir=RTL] {
/* RTL */
span[dir="rtl"] {
.sapMRb.sapMRbHasLabel:focus:before {
left: 0;
right: 0.625rem;
}
}

/* RTL in Compact */
[dir=RTL] {
.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
span[dir="rtl"] {
&.sapUiSizeCompact .sapMRb.sapMRbHasLabel:focus:before {
left: 0;
right: 0.375rem;
}
Expand Down

0 comments on commit 9afa81b

Please sign in to comment.