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 spinner height to maximum at 45deg #19

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

lookback-hugotunius
Copy link
Contributor

@lookback-hugotunius lookback-hugotunius commented Jun 18, 2024

Because the spinner element rotates it would behave poorly when displayed in a context where it contributes to the height of a parent element, especially if that parent element scrolls. By fixing the height at the maximum height the spinner will become when rotated to e.g. 45deg we ensure that it's always the same size.

Here's an example of the problem:

Screen.Recording.2024-06-14.at.17.30.53.mov

After this PR the size will be fixed.

Because this uses a pseudo element we don't need to change the corresponding HTML structure making this change backwards compatible

Because the spinner element rotates it would behave poorly when
displayed in a context where it contributes to the height of a parent
element, especially if that parent element scrolls. By fixing the height
at the maximum height the spinner will become when rotated to e.g. 45deg
we ensure that it's always the same size.
Copy link
Contributor

@joakim-lookback joakim-lookback left a comment

Choose a reason for hiding this comment

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

Great fix.

@lookback-hugotunius lookback-hugotunius merged commit ef9be59 into main Jun 18, 2024
1 check passed
@lookback-hugotunius lookback-hugotunius deleted the feature/pd-1421-fix-spinner-heights branch June 18, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants