fix: Increase input clear button target size to 24×24 pixels#3253
fix: Increase input clear button target size to 24×24 pixels#3253avinashbot merged 1 commit intomainfrom
Conversation
69ca340 to
15592ab
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3253 +/- ##
=======================================
Coverage 96.44% 96.44%
=======================================
Files 791 791
Lines 22569 22570 +1
Branches 7794 7803 +9
=======================================
+ Hits 21766 21767 +1
Misses 750 750
Partials 53 53 ☔ View full report in Codecov by Sentry. |
15592ab to
08434bd
Compare
| 'disabled-background': transparent, | ||
| 'disabled-border-color': transparent, | ||
| 'disabled-color': awsui.$color-text-button-inline-icon-disabled, | ||
| ), |
There was a problem hiding this comment.
I think introducing a new variant to the button would make it a bit confusing for the customers especially with a name like pointer-target which makes sense to us, but not necessarily to the user.
Why are we even using inline variant of the button inside the input? It's not inline with text at all. Alternatively we could introduce something like block-icon which is 24x24 and is a block. Since the icon variant also 24x20.
There was a problem hiding this comment.
This variant is internal button only. So it isn't exposed to users, just to the input component.
There was a problem hiding this comment.
(Just to answer your second question, there is a more standard inline-block icon variant, but the visuals are completely different and the paddings+borders are much heavier than just 24x24.)
Description
Not sold on this yet, but it does work. We don't have to update all "inline-icon" buttons, just the ones that are within 24px of another interactive control. In this case, the clear button is on top of the input element, so we're literally 0px away from the nearest interactive control.
Related links, issue #, if available: AWSUI-60212
How has this been tested?
Should be visually identical. Just pushed to my dev branch, and everything looks good.
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md.CONTRIBUTING.md.Security
checkSafeUrlfunction.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.