Skip to content

Commit

Permalink
fix(button): designs for focused state (#340) (#395)
Browse files Browse the repository at this point in the history
Co-authored-by: Pratik Galoria <[email protected]>
Co-authored-by: Murat Çorlu <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2023
1 parent 7e04ffa commit d3b58ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/button/bl-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@
outline: none;
}

.button:focus-visible {
position: relative;
outline: none;
}

.button:focus-visible::after {
border: 2px solid var(--main-color);
border-radius: var(--bl-border-radius-l);
content: "";
position: absolute;
inset: -4px;
}

:host ::slotted(bl-icon) {
font-size: var(--icon-size);
}
Expand Down

0 comments on commit d3b58ed

Please sign in to comment.