Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix(MenuSelect): Adds id prop to MenuSelect #3073

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

joshpensky
Copy link
Contributor

@joshpensky joshpensky commented Jun 30, 2021

Summary

This PR adds an id prop to the MenuSelect component, in order to associate the element with a label

This PR is a continuation of the work from #3068

Result

  1. Ran npm link in packages/react-instantsearch-dom and root directory to sync package update
  2. Added an id to the default MenuSelect Storybook story
  3. Confirmed the id prop appears in DOM

Screen Shot 2021-06-30 at 9 10 14 AM

@algobot
Copy link
Contributor

algobot commented Jun 30, 2021

✔️ Deploy Preview for react-instantsearch ready!

🔨 Explore the source changes: dad1bcd

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-instantsearch/deploys/60dc963753542f000707f051

😎 Browse the preview: https://deploy-preview-3073--react-instantsearch.netlify.app/storybook/iframe

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 30, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit dad1bcd:

Sandbox Source
react-instantsearch-app Configuration
routing-basic Configuration

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

thanks! same idea about the test

@@ -10,7 +10,7 @@ const stories = storiesOf('MenuSelect', module);
stories
.add('default', () => (
<WrapWithHits hasPlayground={true} linkedStoryGroup="MenuSelect.stories.js">
<MenuSelect attribute="brand" />
<MenuSelect id="menu-select" attribute="brand" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<MenuSelect id="menu-select" attribute="brand" />
<MenuSelect attribute="brand" />

@Haroenv Haroenv merged commit fddaaef into algolia:master Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants