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

Focus state inconsistencies #286

Merged
merged 6 commits into from
Jul 25, 2024
Merged

Conversation

chris-lawton
Copy link
Member

@chris-lawton chris-lawton commented Jul 22, 2024

Link to Ticket

Description of Changes Made

  • Add custom focus state to the logo links in the footer.
  • Make all links that have an arrow as a child element transform on focus. Do not apply this transform if the user has set a preference for reduced motion.
  • Remove listing-avatar__arrow class on some arrow icons - there were no styles for this in the codebase.
  • Refactor listing__arrow styles to icon--listing-arrow so that the BEM syntax is valid.

How to Test

  • Tab through the components on the site that have an arrow in the link - CTA's, items on listing pages.
  • Tab through the components page in the styleguide

Screenshots

Expand to see more

Screenshot 2024-07-22 at 11 18 42
Screenshot 2024-07-22 at 11 18 46
Screenshot 2024-07-22 at 11 18 51
Screenshot 2024-07-22 at 11 19 01
Screenshot 2024-07-22 at 11 19 11

MR Checklist

  • Add a description of your pull request and instructions for the reviewer to verify your work.
  • If your pull request is for a specific ticket, link to it in the description.
  • Stay on point and keep it small so the merge request can be easily reviewed.
  • Tests and linting passes.

Unit tests

  • Added
  • Not required

Documentation

Browser testing

  • I have tested in the following browsers and environments (edit the list as required)
    • Latest version of Chrome on mac
    • Latest version of Firefox on mac
    • Latest version of Safari on mac
    • Safari on last two versions of iOS
    • Chrome on last two versions of Android
  • Not required

Data protection

  • Not relevant
  • This adds new sources of PII and documents it and modifies Birdbath processors accordingly

Accessibility

  • Automated WCAG 2.1 tests pass
  • HTML validation passes
  • Manual WCAG 2.1 tests completed
  • I have tested in a screen reader
  • I have tested in high-contrast mode
  • Any animations removed for prefers-reduced-motion
  • Not required

Sustainability

  • Images are optimised and lazy-loading used where appropriate
  • SVGs have been optimised
  • Perfomance and transfer of data considered
  • If JavaScript is needed alternatives have been considered
  • Not required

Pattern library

  • The pattern library component for this template displays correctly, and does not break parent templates
  • The styleguide is updated if relevant
  • Changes are not relevant the pattern library

@chris-lawton chris-lawton changed the title Fix/focus state inconsistencies Focus state inconsistencies Jul 22, 2024
@chris-lawton chris-lawton requested a review from helenb July 22, 2024 10:29
Copy link
Member

@helenb helenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @chris-lawton

@chris-lawton chris-lawton merged commit 3ac4cd3 into main Jul 25, 2024
6 checks passed
@chris-lawton chris-lawton deleted the fix/focus-state-inconsistencies branch July 25, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants