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

fix(select): adjust clear button #1437

Merged
merged 2 commits into from
Mar 19, 2024
Merged

fix(select): adjust clear button #1437

merged 2 commits into from
Mar 19, 2024

Conversation

cooper-joe
Copy link
Member

@cooper-joe cooper-joe commented Dec 6, 2023

Implements UX-154


Description

This PR changes the SingleSelect and MultiSelect clear button to use an icon button rather than a Button with text label.

clearText prop is used to populate the Tooltip that appears on hover.


Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

All points above should be relevant for feature PRs. For bugfixes, some points might not be relevant. In that case, just check them anyway to signal the work is done.


Screenshots

Before:
image
image

After:
image
image

@cooper-joe cooper-joe requested a review from a team as a code owner December 6, 2023 12:58
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Dec 6, 2023

🚀 Deployed on https://pr-1437--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify December 6, 2023 13:02 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 6, 2023 14:55 Inactive
Copy link

cypress bot commented Dec 6, 2023

Passing run #3282 ↗︎

0 584 0 0 Flakiness 0

Details:

test(select): check clear button tooltip text
Project: ui Commit: 06885f5496
Status: Passed Duration: 06:33 💡
Started: Mar 19, 2024 8:41 AM Ended: Mar 19, 2024 8:47 AM

Review all test suite changes for PR #1437 ↗︎

Copy link
Contributor

@Mohammer5 Mohammer5 left a comment

Choose a reason for hiding this comment

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

This is actually a change request, but I won't be working next week, so approving so I don't block this PR

EDIT: 👍

components/select/src/single-select/input.js Show resolved Hide resolved
@dhis2-bot dhis2-bot temporarily deployed to netlify March 19, 2024 08:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 19, 2024 08:37 Inactive
@cooper-joe cooper-joe merged commit e015c85 into master Mar 19, 2024
13 checks passed
@cooper-joe cooper-joe deleted the select-clear branch March 19, 2024 09:25
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 9.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants