Select to view content in your preferred language

Is it possible to prevent accessibility indicator when pressing with mouse

750
5
03-24-2023 04:00 AM
Labels (2)
Robert_van_Gilst
New Contributor III

Hi,

Is it possible to hide the border around object when interacting with a mouse.

For example the following calcite-tab-nav:

        <calcite-tab-nav slot="title-group" class="tab-headers">
            <calcite-tab-title [selected]="tab === 'info'">
                Info
            </calcite-tab-title>
            <calcite-tab-title [selected]="tab === 'relations'">Relationer</calcite-tab-title>
            <calcite-tab-title [selected]="tab === 'graf'">Graf</calcite-tab-title>
            <calcite-tab-title [selected]="tab === 'json'">Json</calcite-tab-title>
        </calcite-tab-nav>

 

Which looks like this:

Robert_van_Gilst_0-1679655457295.png

But when pressing on of the tabs it looks like this:

Robert_van_Gilst_1-1679655502751.png

Is there a setting that hides this border from showing on all elements.

I understand that it is an accessibility option, but I would only like to see it when using the keyboard.

 

0 Kudos
5 Replies
KittyHurley
Esri Contributor

Hi @Robert_van_Gilst - great question.

Calcite aims to support accessibility features, and with the upcoming Web Content Accessibility Guidelines 2.2, Success Criterion 2.4.7: Focus Visible will be migrating from Level AA to Level A to provide more context and support to users with low vision and a wider range of cognitive abilities when interacting via keyboard or mouse.

However, there is a plan to towards exposing a global and component focus state color, which would support more modification in the near future via #6458.

0 Kudos
Robert_van_Gilst
New Contributor III

Hi @KittyHurley ,

Thank you for you answer, when I look at #6458 it states that I should be able to set outline to 0 to disable the outline. But I cannot figure out where to set it...

Can you point me in the right direction? 🙂

0 Kudos
KittyHurley
Esri Contributor

@Robert_van_Gilst There currently isn't enough support for folks to change focus across the components, so there isn't a workaround prior to work on issue #6458.

We haven't yet assigned the issue to a future milestone, but any "thumbs ups" on the initial issue, or comments can help bump the issue's prioritization.

As far as focus outline, we don't recommend or support setting the focus outline to "0" or "none" due to accessibility implications resulting in total keyboard inaccessibility, so would be up to the developer to determine the feasibility and implementation.

0 Kudos
Lerman
by
Occasional Contributor

@KittyHurley  Hello, is there a solution now, please?

0 Kudos
KittyHurley
Esri Contributor

@Lerman Not at this time, the enhancement mentioned above is in the Calcite design backlog. You can upvote the GitHub issue or add a comment with a use case to help Calcite prioritize the issue.

0 Kudos