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: correct dropdown arrow placement for Thrasos on Safari #8017

Merged

Conversation

mikeharv
Copy link
Contributor

@mikeharv mikeharv commented Apr 8, 2024

The basics

The details

Resolves

Fixes #7890

Proposed Changes

Ensure that the dominant baseline for the arrow symbol on dropdown fields is 'center'. The exception is when a field's text element's dominant baseline should not be centered. Previously this was true for certain browsers (IE and Edge), but now it's only true for the Geras renderer. (

override FIELD_TEXT_BASELINE_CENTER = false;
)

Screenshots are of the Advanced Playground, renderer set to Thrasos on Safari. No regressions found for other renderers or other browsers.

Before:
image

After:
image

Reason for Changes

When using the Thrasos renderer on Safari, all arrows in dropdown fields appear too high. This is evidently because Safari does not inherit the property dominant-baseline: "central" from the parent element.

Test Coverage

No test have been added.

Documentation

I don't believe this warrants any updates to documentation.

Additional Information

@mikeharv mikeharv requested a review from a team as a code owner April 8, 2024 21:43
@mikeharv mikeharv requested a review from rachel-fenichel April 8, 2024 21:43
@github-actions github-actions bot added the PR: fix Fixes a bug label Apr 8, 2024
Copy link
Collaborator

@rachel-fenichel rachel-fenichel left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@rachel-fenichel rachel-fenichel merged commit e2df0fc into google:develop Apr 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown field arrow misplaced on Safari when using Thrasos renderer
2 participants