Use flexbox gap to position currency symbol with the tax information string #98943
+16
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #98920
Proposed Changes
The new Billing History component based on DataViews (currently enabled in
DEV
) had a bug where the currency symbol would appear next to the tax string incurrency-on-right
locales. The lack of space made it look like the currency symbol was part of the string instead of being separated by a space.This PR adjusts the fix from 98920 to use the flexbox gap property instead of a left-hand margin. It also moves the changes to
client/me/purchases/billing-history/style-data-view.scss
so they'll be scoped specifically for the new Billing History component.It also replaces a
min-height
property for the loading state of the list with a bit of styling to center the spinner without using such an artificially large loading area.Why are these changes being made?
By utilizing the
gap
property, we should be able to avoid any unexpected alignment issues if this line were to end up broken up in the future.Symbol on the left of amount
![Screenshot 2025-01-27 at 9 30 09 AM](https://private-user-images.githubusercontent.com/1138631/407029259-a123ad15-2d31-4de5-8b11-9b329559071c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjYzMjcsIm5iZiI6MTczOTM2NjAyNywicGF0aCI6Ii8xMTM4NjMxLzQwNzAyOTI1OS1hMTIzYWQxNS0yZDMxLTRkZTUtOGIxMS05YjMyOTU1OTA3MWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTMxMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTZhNTI1MDAwYTg1YmY4NjQ4ZjYyZDg4ZDQyY2FkOTMzMWJlZmU2MGQzZmQxZGMxOTdhODhjNjgxYWYwYmM1MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.vPh-DuB8iwt7h3UVo78QyGjsDs6C-l7nLVXSW55AB1c)
Symbol on the right of amount
![Screenshot 2025-01-27 at 9 20 43 AM](https://private-user-images.githubusercontent.com/1138631/407029176-a4ae59fd-07bd-4739-9e19-997b7d90aa85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjYzMjcsIm5iZiI6MTczOTM2NjAyNywicGF0aCI6Ii8xMTM4NjMxLzQwNzAyOTE3Ni1hNGFlNTlmZC0wN2JkLTQ3MzktOWUxOS05OTdiN2Q5MGFhODUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTMxMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGVlZmQ3YmVjMGRjZTZhN2FhNDIzMDk4MDk2OTVjYTY1NmJjYWFjNjBiOTE3NWNlOGYzNGIwODdkOTgyM2Y5YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.hqIU5tuEBFDi7jcDbkJRW0bRF2xK4JWqOMrnfdsTFVU)
RTL language
![Screenshot 2025-01-27 at 9 29 02 AM](https://private-user-images.githubusercontent.com/1138631/407029073-bc0ecc7d-00be-4987-abc6-66ffdf68468c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjYzMjcsIm5iZiI6MTczOTM2NjAyNywicGF0aCI6Ii8xMTM4NjMxLzQwNzAyOTA3My1iYzBlY2M3ZC0wMGJlLTQ5ODctYWJjNi02NmZmZGY2ODQ2OGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTMxMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTUyZTk5YmUzN2IzZWQzNzI3YjY0MTFkOTkzMmFjYjVhOWIxMWExZDRhYWNlNjkwYzhkYjUxOTY0NThlZjRmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.T5OA7Rg5zVlJLA5u56ymbJkZsDR37DOYd3hmw6DtlCo)
Testing Instructions
Pre-merge Checklist