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

Consume the className prop in OuiSearchBar #1381

Merged

Conversation

AMoo-Miki
Copy link
Collaborator

Description

Consume the className prop in OuiSearchBar

Also:

  • deprecate aria-label and data-test-subj which have never been consumed despite being defined

Issues Resolved

Fixes #1343

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines +103 to +107
// @deprecated This property has never been consumed despite being defined
'aria-label'?: string;

// @deprecated This property has never been consumed despite being defined
'data-test-subj'?: string;
Copy link
Member

Choose a reason for hiding this comment

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

do we still have a data-test-subj that we can use? for our tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the actual component inside does and that one has its own test id. These two have never been attached to anything.

Also:
* deprecate `aria-label` and `data-test-subj` which have never been consumed despite being defined

Signed-off-by: Miki <[email protected]>
@AMoo-Miki AMoo-Miki merged commit 9e8cf07 into opensearch-project:main Sep 4, 2024
14 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
Also:
* deprecate `aria-label` and `data-test-subj` which have never been consumed despite being defined

Signed-off-by: Miki <[email protected]>
(cherry picked from commit 9e8cf07)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
AMoo-Miki pushed a commit that referenced this pull request Sep 5, 2024
Also:
* deprecate `aria-label` and `data-test-subj` which have never been consumed despite being defined

Signed-off-by: Miki <[email protected]>
(cherry picked from commit 9e8cf07)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Class name prop is not passed down for OuiSearchBar component
2 participants