twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Home Page:https://getbootstrap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

focus-ring is not displayed on a button applied shadow class

yonta opened this issue · comments

Prerequisites

Describe the issue

Applying the shadow class to a button prevents the display of the focus-ring.
Using the test case code and accessing the HTML in a browser, attempt to focus on the button using the keyboard's Tab key.

expected

image

actual

image

Reduced test cases

<button class="btn btn-primary shadow">Button</button>

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

v5.3.2, main(commit 4e35f64)

Yeah, our focus outlines are built with box-shadow so you're overriding them with a utility. Modify the button CSS variable, or use a wrapper element (less ideal).

Thanks to reply.
I will remove shadow class from button element of my application.