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

Remove double border between nested fields and text fields #382

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

rhystmills
Copy link
Contributor

@rhystmills rhystmills commented Apr 10, 2024

Co-authored with @simonbyford.

We thought we'd have another pop at this to see if we could avoid the side effects in https://github.com/guardian/flexible-content/pull/4704

This time around, we've used outlines rather than borders to avoid layout shifts when we apply the styles, and to make sure validation and focus states are always 'above' the existing borders.

Before:

image

After:

image
image
image
image
image

How to test

Pull this branch into composer locally with yalc and check that this is working properly in one of the list elements.

@rhystmills rhystmills requested a review from a team as a code owner April 10, 2024 08:59
@rhystmills rhystmills changed the title Remove double border between nested fields and text fields. This will… Remove double border between nested fields and text fields Apr 10, 2024
rhystmills and others added 2 commits April 10, 2024 10:38
… affect all

nested fields, which is fine for now but might need a more nuanced solution in the
future if nested fields are not below a text field.

Co-authored-by: Simon Byford <simon.byford@guardian.co.uk>
Copy link
Contributor

@simonbyford simonbyford left a comment

Choose a reason for hiding this comment

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

🥳

@simonbyford simonbyford merged commit cac755b into main Apr 10, 2024
3 checks passed
@simonbyford simonbyford deleted the sb-rm/double-border branch April 10, 2024 10:36
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.

None yet

3 participants