Bixal / bixal-site-drupal

Bixal drupal site
https://www.bixal.com
1 stars 0 forks source link

Pagination component #249

Open buddy-harlow opened 4 months ago

buddy-harlow commented 4 months ago

Location: https://www.bixal.com/blog

Suggestion

I recommend we adopt USWDS Pagination component's visual styling and code as it is more intuitive.

buddy-harlow commented 3 months ago

@mpbixal Do you think the closing of #268 will also fix this issue?

mattsqd commented 3 months ago

@mpbixal Do you think the closing of #268 will also fix this issue?

I don't think so, #268 just included the CSS, it did not change the dom. For example here is the USWDS paging component: image and here is ours: image Our classes our the same, the difference is that USWDS uses aria-label and we use title. And the values for those are different. So I assume, we need to use aria-label and switch to just Page 1. Also, check the other title values, like 'current page' and 'next page'.

I'm not sure if the link in:

I expect the pagination page links to announce as "Page 1 link" "Page 2 link"

is actually in the aria-label as well, or if screen readers just announce the HREF value after they read the aria-label.

mejiaj commented 1 month ago

@buddy-harlow @mattsqd was the USWDS pagination package added? I'd prefer to grab components 1-by-1 to save on compiled CSS.

When we launched we only had USWDS Core (tokens, functions, mixins).

mattsqd commented 1 month ago

@mejiaj Yeah, I believe we turned just on that one component with this PR https://github.com/Bixal/bixal-site-drupal/pull/269/files. Now we just need to tinker with the dom a little bit, I believe.