Skip to content

In Identity UI, "Logout" button does not show focus state #25675

@SteveSandersonMS

Description

@SteveSandersonMS

This was reported as an accessibility issue at https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1162890

In Logout.cshtml, the logout button is defined as:

<button type="submit" class="nav-link btn btn-link text-dark">Click here to Logout</button>

The combination of nav-link with btn-link unfortunately has the bad behavior that it doesn't display any focus indication when focused using the keyboard. nav-link tries to set a text-underline style when focused, but btn-link overrides that and sets text-decoration to none in all cases.

Some other combination of styles should be used. Or it would be possible to fix it by defining some custom CSS that draws a focus highlight around this element when focused, but that would be less desirable because where possible we want the styles to come from Bootstrap, not custom overrides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-mostThis issue impacts most of the customersarea-identityIncludes: Identity and providersbugThis issue describes a behavior which is not expected - a bug.feature-accessibilityThis issue has accessibility impactseverity-nice-to-haveThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions