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(style): synced text field styles with pattern library #1206

Merged
merged 11 commits into from
Jan 23, 2024

Conversation

orest-s
Copy link
Contributor

@orest-s orest-s commented Sep 25, 2023

Closes: #1070

@orest-s orest-s requested a review from a team as a code owner September 25, 2023 12:41
@github-actions
Copy link
Contributor

Copy link
Member

@scurker scurker left a comment

Choose a reason for hiding this comment

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

A couple of things here:

The error field focus ring shifts content during focus (see below video), the footprint of the element should not be shifting content on the page:

cauldron-error-textfield-focus.mov

The default focus ring still appears to be too large, according to our pattern library it needs to be 1px smaller.

Minor nit: the commit message / pr title should be more descriptive in describing what changed. Something like "synced text field styles with pattern library". Otherwise, it will be difficult to know what actually changed when it gets placed in the changelog.

We need to also ensure that any style changes are reflected on Combobox as well. Combobox isn't a 1:1 of textfield and has to duplicate a few styles over as it cannot use the textfield styles directly.

@orest-s orest-s changed the title fix(style): synced some styles with uxpin fix(style): synced text field styles with pattern library Oct 9, 2023
Copy link
Member

@scurker scurker left a comment

Choose a reason for hiding this comment

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

Changes here look good for the textfield/combobox error focus ring changes.

It does look like we're still missing the following from the issue:

  • Focus ring should be 1px smaller (currently appears to be 3px)

The above applies to the default "blue" focus ring that gets applied, so we just need to shrink both TextField and Combobox by 1px.

This is also an existing issue, but I noticed that hover state of the combobox error is currently using the wrong focus color that would be nice to sync up here as well:

cauldron combobox with blue focus ring

packages/styles/forms.css Outdated Show resolved Hide resolved
@orest-s orest-s requested a review from scurker October 17, 2023 15:32
Copy link
Member

@scurker scurker left a comment

Choose a reason for hiding this comment

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

One remaining nit, and this should be good to go!

packages/styles/combobox.css Outdated Show resolved Hide resolved
packages/styles/combobox.css Outdated Show resolved Hide resolved
packages/styles/combobox.css Outdated Show resolved Hide resolved
packages/styles/combobox.css Outdated Show resolved Hide resolved
packages/styles/combobox.css Outdated Show resolved Hide resolved
packages/styles/forms.css Outdated Show resolved Hide resolved
packages/styles/forms.css Outdated Show resolved Hide resolved
packages/styles/forms.css Outdated Show resolved Hide resolved
packages/styles/forms.css Outdated Show resolved Hide resolved
packages/styles/forms.css Outdated Show resolved Hide resolved
scurker
scurker previously approved these changes Oct 18, 2023
@scurker scurker closed this Jan 11, 2024
@scurker scurker reopened this Jan 11, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1206.d15792l1n26ww3.amplifyapp.com

Copy link
Member

@scurker scurker 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 very close, last remaining this is that the Combobox error hover ring appears to be the wrong color in dark mode:

@orest-s orest-s requested a review from scurker January 23, 2024 14:07
@scurker scurker merged commit 51a804a into develop Jan 23, 2024
6 checks passed
@scurker scurker deleted the fix/sync-text-field-with-uxpin branch January 23, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync TextField with UXPin
2 participants