-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Repair box-shadow on TextInput and TextArea (#23472)
## Summary & Motivation Repair some slightly incorrect box-shadow values on `TextInput` and `TextArea`. - The styled text input should have an inset box-shadow, but we appear to have overlooked this at some point. Fixing this allows the input and button controls to have the same default height, thus repairing the bug that brought this to our attention. - Note that this effectively takes the `TextInput` height down from 34px to 32px, which may be noticeable in some parts of the app. It's more correct and consistent, but if there are places where we're depending on the incorrect height for alignment etc, we might notice some knock-on effects that we should clean up. - I also reduced the focus ring box-shadow to 2px, again to match `Button`. - The `TextArea` component has been ignoring its `strokeColor` prop, so all textareas are getting the default box-shadow color. This is fixed. - The `TextArea` now also gets a 2px focus ring. ## How I Tested These Changes Storybook examples.
- Loading branch information
Showing
2 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
979d7fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-storybook ready!
✅ Preview
https://dagit-storybook-o17pv5w8r-elementl.vercel.app
Built with commit 979d7fb.
This pull request is being automatically deployed with vercel-action