-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore: update the appearance filled styles on text-field, text-area and number-field components #17595
chore: update the appearance filled styles on text-field, text-area and number-field components #17595
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a6eda29:
|
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: e45eeaba8deb93e825a9d3f72e87a9c4c9225ea1 (build) |
57dbbf6
to
4b001cc
Compare
@khamudom Is this aligned with the latest versions of Fluent outlined in the specs? Just trying to get a feel for whether this is catch-up to the old versions or part of the new work. |
Correct, this is aligning to the latest fluent design. |
🎉 Handy links: |
…nd number-field components (microsoft#17595) * update filled style on textfield textarea and numberfield * Change files * update high contrast color on placeholder and label * create and input pattern file and applied pattern to filled inputs * fix import order * updated api-report * adding transition to active line
Pull request checklist
$ yarn change
Description of changes
The updated style involves adding the active state for text-field text-area and number-filed, the active state has a small underline and when focused the underline fills the width of the input.
Created a file in the patterns directory called
input.ts
. This is where we will put different helper styles for the different types of input appearance. Currently, the only helper object is for thefilled
appearance.Additional changes were in the text-area component, where the display was changed to inline-flex, this removes an extra space that was being set on the bottom of the component.
High contrast style was also addressed to match the updated design.
text-field (rest, hover, active and focus)




text-area (rest, hover, active and focus)




number-field (rest, hover, active and focus)




High Contrast (active and focus states)






Focus areas to test
(optional)