Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination: inconsistent focus ring #5113

Open
benelan opened this issue Aug 9, 2022 · 4 comments
Open

Pagination: inconsistent focus ring #5113

benelan opened this issue Aug 9, 2022 · 4 comments
Labels
0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. Calcite (dev) Issues logged by Calcite developers. design Issues that need design consultation prior to development. estimate - 5 A few days of work, definitely requires updates to tests. p - low Issue is non core or affecting less that 10% of people using the library ready for dev Issues ready for development implementation.

Comments

@benelan
Copy link
Member

benelan commented Aug 9, 2022

Actual Behavior

When clicking the number directy next to the ellipses, the focus ring is actually on the number after.

image

Expected Behavior

The number that was clicked has a focus ring, which is how the component behaves when clicking on a page number that is not next to the ellipses (see comment below for an example from Ant)

image

Reproduction Sample

https://codepen.io/benesri/pen/YzavJga?editors=1000

Reproduction Steps

  1. Open the repro sample
  2. Click on page 2 - notice the focus ring is around "2"
  3. Click on page 5 - notice that the focus ring is around "6", however the active underline is correctly under "5"

Reproduction Version

beta.86

Relevant Info

The issue started all the way back in beta.22 and I found this line in its changelog entry:

improved focus styles across all components

But unfortunately no linked PR

Regression?

beta.22

@benelan benelan added bug Bug reports for broken functionality. Issues should include a reproduction of the bug. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Aug 9, 2022
@geospatialem geospatialem added p - medium Issue is non core or affecting less that 60% of people using the library design Issues that need design consultation prior to development. p - low Issue is non core or affecting less that 10% of people using the library and removed p - medium Issue is non core or affecting less that 60% of people using the library labels Oct 18, 2022
@geospatialem
Copy link
Member

@ashetland + @SkyeSeitz: Thoughts on the design with pagination's :focus?

@ashetland
Copy link
Contributor

ashetland commented Nov 4, 2022

Agree with @benelan, that the expected behavior is the correct behavior. To maintain consistency in the pattern, the focus ring should not auto-advance. cc @geospatialem

@benelan benelan added the Calcite (dev) Issues logged by Calcite developers. label Jan 30, 2023
@geospatialem geospatialem added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. labels Feb 6, 2023
@geospatialem geospatialem added this to the Freezer milestone Feb 6, 2023
@geospatialem geospatialem removed the needs triage Planning workflow - pending design/dev review. label Feb 6, 2023
@brittneytewks brittneytewks added the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Sep 12, 2023
@brittneytewks brittneytewks removed the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Dec 11, 2023
@ashetland
Copy link
Contributor

See this example from Ant where the focus ring moves to the clicked/active page. This happens with both mouse and keyboard input. https://ant.design/components/pagination#pagination-demo-more

@ashetland ashetland added the ready for dev Issues ready for development implementation. label Nov 12, 2024
@github-actions github-actions bot added 0 - new New issues that need assignment. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed 1 - assigned Issues that are assigned to a sprint and a team member. labels Nov 12, 2024
@github-actions github-actions bot removed this from the Freezer milestone Nov 12, 2024
Copy link
Contributor

cc @geospatialem, @brittneytewks

@DitwanP DitwanP added the estimate - 5 A few days of work, definitely requires updates to tests. label Dec 2, 2024
@DitwanP DitwanP added this to the 2025-07-29 - 3.3.0 Jul Release milestone Dec 2, 2024
@DitwanP DitwanP removed the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. Calcite (dev) Issues logged by Calcite developers. design Issues that need design consultation prior to development. estimate - 5 A few days of work, definitely requires updates to tests. p - low Issue is non core or affecting less that 10% of people using the library ready for dev Issues ready for development implementation.
Projects
None yet
Development

No branches or pull requests

7 participants