Skip to content

Commit

Permalink
feat(button): extract focus ring opacity variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Juveniel committed Jan 4, 2023
1 parent 4344578 commit f6098db
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/bootstrap/scss/button/_variables.scss
Expand Up @@ -221,6 +221,9 @@ $kendo-flat-button-active-opacity: .16 !default;
/// The overlay opacity of selected flat button. Used to create background for the flat button.
/// @group button
$kendo-flat-button-selected-opacity: .2 !default;
/// The opacity of the flat button focus ring. Used to create border for the flat button.
/// @group button
$kendo-flat-button-focus-ring-opacity: .12 !default;

/// The color transition of the button.
/// @group button
Expand Down
3 changes: 3 additions & 0 deletions packages/classic/scss/button/_variables.scss
Expand Up @@ -221,6 +221,9 @@ $kendo-flat-button-active-opacity: .16 !default;
/// The overlay opacity of selected flat button. Used to create background for the flat button.
/// @group button
$kendo-flat-button-selected-opacity: .2 !default;
/// The opacity of the flat button focus ring. Used to create border for the flat button.
/// @group button
$kendo-flat-button-focus-ring-opacity: .12 !default;

/// The color transition of the flat button.
/// @group button
Expand Down
2 changes: 1 addition & 1 deletion packages/default/scss/button/_layout.scss
Expand Up @@ -181,7 +181,7 @@

&:focus::after,
&.k-focus::after {
opacity: .12;
opacity: $kendo-flat-button-focus-ring-opacity;
}
}

Expand Down
3 changes: 3 additions & 0 deletions packages/default/scss/button/_variables.scss
Expand Up @@ -221,6 +221,9 @@ $kendo-flat-button-active-opacity: .16 !default;
/// The overlay opacity of selected flat button. Used to create background for the flat button.
/// @group button
$kendo-flat-button-selected-opacity: .2 !default;
/// The opacity of the flat button focus ring. Used to create border for the flat button.
/// @group button
$kendo-flat-button-focus-ring-opacity: .12 !default;

/// The color transition of the flat button.
/// @group button
Expand Down
3 changes: 3 additions & 0 deletions packages/material/scss/button/_variables.scss
Expand Up @@ -221,6 +221,9 @@ $kendo-flat-button-active-opacity: .16 !default;
/// The overlay opacity of selected flat button. Used to create background for the flat button.
/// @group button
$kendo-flat-button-selected-opacity: .22 !default;
/// The opacity of the flat button focus ring. Used to create border for the flat button.
/// @group button
$kendo-flat-button-focus-ring-opacity: null !default;

/// The transition of the button.
/// @group button
Expand Down

0 comments on commit f6098db

Please sign in to comment.