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

feat(input): add styles for clear action to ionic theme #29337

Merged
merged 27 commits into from Apr 16, 2024
Merged

Conversation

amandaejohnston
Copy link
Contributor

@amandaejohnston amandaejohnston commented Apr 12, 2024

Issue number: Internal


What is the new behavior?

For the ionic theme: Adjusted the size of the clear button to match design specs, and updated the behavior so the button additionally only shows if the native input or any other actions within the ion-input are focused. (See code comments for details.)

The actual icon used has not been modified. The ticket says to "use the material design clear icon as the reference icon for this feature," and we've already added a feature allowing the icon to be customized at the app level. Let me know if the intention was to use a different default icon with the ionic theme.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 5:34pm

@amandaejohnston amandaejohnston changed the title Fw 6092 feat(input): add styles for clear action to ionic theme Apr 12, 2024
@amandaejohnston amandaejohnston marked this pull request as ready for review April 12, 2024 19:27
@amandaejohnston amandaejohnston requested a review from a team as a code owner April 12, 2024 19:27
@amandaejohnston amandaejohnston requested review from thetaPC and removed request for a team April 12, 2024 19:27
@amandaejohnston
Copy link
Contributor Author

The input UX requirements were updated to change all references to the Active state to just be when the input is focused. Updated the PR description to remove extra notes about what Active means.

@thetaPC
Copy link
Contributor

thetaPC commented Apr 15, 2024

@amandaejohnston please update the description with the new logic for the visibility of the clear icon.

@amandaejohnston
Copy link
Contributor Author

@amandaejohnston please update the description with the new logic for the visibility of the clear icon.

The logic used here hasn't actually changed (it was always equivalent to the input being focused), so no updates needed on that front 👍

core/src/components/input/input.ionic.scss Outdated Show resolved Hide resolved
core/src/components/input/test/basic/input.e2e.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

LGTM, minor nitpick that I leave up to you to add: add padding to the tests so the focus ring doesn't get cut off.

@amandaejohnston
Copy link
Contributor Author

LGTM, minor nitpick that I leave up to you to add: add padding to the tests so the focus ring doesn't get cut off.

Good idea, added 👍

@amandaejohnston amandaejohnston merged commit ac102cf into ROU-4848 Apr 16, 2024
44 checks passed
@amandaejohnston amandaejohnston deleted the FW-6092 branch April 16, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants