This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ $container-outer-padding-default: 2px !default;
105105 }
106106 }
107107}
108-
109108/// Customizes the color of the button focus ring.
110109///
111110/// @param $inner-ring-color [$inner-ring-color-default] - Inner focus ring color.
@@ -120,3 +119,24 @@ $container-outer-padding-default: 2px !default;
120119 border-color : $outer-ring-color ;
121120 }
122121}
122+
123+ /// Customizes the border radius of the button focus ring.
124+ ///
125+ /// @param {Number} $ring-radius - The border radius of the focus ring.
126+ /// @param {Number} $outer-ring-width [$outer-ring-width] - Width of the outer
127+ /// ring, required to compute the radius for the inner ring.
128+ @mixin focus-ring-radius (
129+ $ring-radius ,
130+ $outer-ring-width : $outer-ring-width-default ,
131+ $query : feature-targeting .all ()
132+ ) {
133+ $feat-structure : feature-targeting .create-target ($query , structure );
134+
135+ @include feature-targeting .targets ($feat-structure ) {
136+ border-radius : $ring-radius - $outer-ring-width ;
137+
138+ & ::after {
139+ border-radius : $ring-radius ;
140+ }
141+ }
142+ }
You can’t perform that action at this time.
0 commit comments