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

Make focusable container logic opt in #24

Merged
merged 6 commits into from
Aug 11, 2023
Merged

Conversation

Murreey
Copy link
Contributor

@Murreey Murreey commented Aug 11, 2023

Description

Changing the focusable container functionality from being the default to being opt in via a data-lrud-consider-container-distance attribute.

Motivation and Context

The focusable containers has proven to be not needed more often than it is, and we often bump into scenarios where focusing containers is unintuitive and doesn't 'feel' right.

Keeping the behaviour around as there are scenarios we do want it, but opting in to it.

How Has This Been Tested?

Refactored the tests, replaced some of the test files with ones that are less specific to our use case and replicate the bare minimum scenario. Added new tests around focusable container behaviour (all the other tests are testing unfocusable containers implicitly).

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Murreey Murreey requested a review from a team as a code owner August 11, 2023 09:07
@Murreey Murreey merged commit eeed08a into master Aug 11, 2023
1 check passed
@Murreey Murreey deleted the opt-in-focusable-containers branch August 11, 2023 15:50
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.

None yet

2 participants