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

(Release 4.0.0): HDS-2069: Select part 5 #1377

Merged
merged 18 commits into from
Oct 18, 2024

Conversation

NikoHelle
Copy link
Contributor

@NikoHelle NikoHelle commented Oct 10, 2024

Description

Added keyboard commands, focus shifting and handling, onFocus/onBlur and active-descendant for accessibility.

Added also Playwright-tests and PW utils.

Missing:

  • theming
  • storage for making easier for users to memoize props.
  • docs

Related Issue

Closes HDS-2069

Motivation and Context

How Has This Been Tested?

Unit and Playwright

Demos:

Links to demos are in the comments

Screenshots (if appropriate):

Add to changelog

Changelog added later with last part

This is to suppress "not found" errors with some *.module.scss
Best to keep selectors with the HTML code.

Selectors are needed when resolving where user interactions with mouse/keyboard happened.

Also used to shift focus when navigating with keyboard.
Used to find out which kind of element had an event and where to find an element and pick siblings etc for navigation.
Handles:
- when menu is opened focus is moved to first element
- when list loses focus, it is closed
- when a tag is removed focus is moved to first tag / button
- button is focused after many changes

Tracks active-descendant for screen readers

Calls also blur / focus callbacks
Commented out recordVideo-prop or VSCode plugin records videos
There will be many more utils, so this is better namings
If options are random, visual tests fail. Added also ids to find components in PW tests
@NikoHelle NikoHelle changed the base branch from development to feature/hds-2069-select-v4 October 10, 2024 12:50
Copy link

github-actions bot commented Oct 10, 2024

Test Results

 1 files  20 suites   3m 32s ⏱️
15 tests 15 ✅ 0 💤 0 ❌
30 runs  30 ✅ 0 💤 0 ❌

Results for commit 637ad17.

♻️ This comment has been updated with latest results.

Copy link

Preview found from hds-demo docs/preview_1377

Demos

Docs
Core Storybook
React Storybook

Copy link
Contributor

@laurakarhu laurakarhu left a comment

Choose a reason for hiding this comment

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

Very focused. Minor remarks on the example colors, those can be closed after changes.

packages/react/src/components/select/Select.stories.tsx Outdated Show resolved Hide resolved
packages/react/src/components/select/Select.stories.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@mrTuomoK mrTuomoK left a comment

Choose a reason for hiding this comment

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

No bad words again for this one either, hell-of-a-job 🎆

@NikoHelle NikoHelle merged commit 51e3908 into feature/hds-2069-select-v4 Oct 18, 2024
9 checks passed
@NikoHelle NikoHelle deleted the hds-2069-select-part-V branch October 18, 2024 06:48
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.

3 participants