Skip to content

Commit bfe3692

Browse files
lazdGarthDB
authored andcommitted
fix: add back missing Button focus-ring
1 parent 04b362f commit bfe3692

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

components/button/index.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,13 @@ a.spectrum-Button {
119119

120120
line-height: var(--spectrum-button-primary-text-line-height);
121121
}
122+
123+
.spectrum-LogicButton,
124+
.spectrum-Button {
125+
&:focus-ring,
126+
&.is-focused {
127+
&:after {
128+
box-shadow: 0 0 0 var(--spectrum-button-primary-focus-ring-size-key-focus) var(--spectrum-button-primary-m-focus-ring-color-key-focus);
129+
}
130+
}
131+
}

components/button/skin.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ OF ANY KIND, either express or implied. See the License for the specific languag
1010
governing permissions and limitations under the License.
1111
*/
1212

13-
:root {
14-
--spectrum-button-primary-m-border-size-increase-key-focus: 1px;
15-
}
16-
1713
.spectrum-Button--cta {
1814
background-color: var(--spectrum-button-cta-m-background-color);
1915
border-color: var(--spectrum-button-cta-m-border-color);

0 commit comments

Comments
 (0)