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

[Feature] SearchInput auto id #432

Merged
merged 3 commits into from
Feb 5, 2021
Merged

Conversation

aappoalander
Copy link
Contributor

@aappoalander aappoalander commented Jan 27, 2021

Description

This PR adds AutoId for SearchInput and replaces the old uuid implementation. By doing so SSR support is improved and the id mismatch between server and client no longer happens.

In addition, this PR introduces an intermediate style wrapper so that it is now possible to add margin/display etc styles directly to SearchInput without breaking the component.

Motivation and Context

SSR Should be fully supported to allow faster page loads and hydration on client side. Positioning the components should be possible without the danger of breaking the internal layout and styles and this can be achieved by adding an additional style wrapper inside the component.

How Has This Been Tested?

Tested with Mac OS and VoiceOver using Firefox, Safari and Chrome and with Win10 and NVDA using Chrome, Firefox and Edge.

Release notes

SearchInput

  • Add better support for SSR by replacing uuid with AutoId
  • Add support for styling SearchInput directly without breaking the component's internal layout
  • Breaking change: rename inputContainerProps to wrapperProps

@aappoalander aappoalander added enhancement New feature or request DX Refactoring for maintainability labels Jan 27, 2021
@aappoalander aappoalander self-assigned this Jan 27, 2021
@aappoalander aappoalander force-pushed the feature/searchinput-auto-id branch from 6050c40 to d413b8c Compare February 2, 2021 07:21
@aappoalander aappoalander force-pushed the feature/searchinput-auto-id branch from d413b8c to 6378a16 Compare February 2, 2021 10:43
@aappoalander aappoalander marked this pull request as ready for review February 2, 2021 13:04
Copy link
Collaborator

@LJKaski LJKaski left a comment

Choose a reason for hiding this comment

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

Good work :)

@aappoalander aappoalander merged commit 7cafe36 into develop Feb 5, 2021
@aappoalander aappoalander deleted the feature/searchinput-auto-id branch March 22, 2021 07:43
@aappoalander aappoalander mentioned this pull request Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Refactoring for maintainability enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants