-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(paginator): Use en dash in MatPaginatorIntl #16693
Conversation
This is the correct typography to use to format number ranges BREAKING CHANGE: MatPaginatorIntl will now cause MatPaginator to display an 'EN DASH' (U+2013) rather than a 'HYPHEN-MINUS' (U+002D)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me, but I can see it triggering a bunch of screenshot test failures. Leaving it up to @jelbourn and @andrewseguin for final approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We'll see how breaking it ends up being.
This results in ~100 targets failing, a combination of screen diffs and unit tests comparing against strings like |
Since it causes so many breakages, this probably won't get merged for a long time (unless you want to do the work of getting it green inside Google, @paulferaud) |
@jelbourn As in just getting all tests inside Google in a state where they would pass with or without this change? Or is there a more manageable process? I don’t think I can single single handedly fix 100 tests in such a way... |
For that many, yes, it would probably be getting affected the tests to pass either way and then also updating the screenshots affected. It's ultimately a lot of work for a small change. |
Alright. Would be nice to get this in eventually. Hopefully, we could migrate a log of people to use the newer Xap paginator, which would alleviate the breakage. |
Took quite a lot of test and screenshot changes but we got a passing test run 👍 |
That’s amazing! I was ready to give up on this. Thanks a lot! PS: I saw the CL. Glad we could do this as a 1 shot. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Number ranges should be formatted with en dash.
Technically, there should be no spaces either: https://www.thepunctuationguide.com/en-dash.html
But since this isn’t a sentence, I think the spaces are fine (It’s also a less disruptive change, while still going in the right direction).
BREAKING CHANGE: MatPaginatorIntl will now cause MatPaginator to display
an '
EN DASH
' (U+2013
) rather than a 'HYPHEN-MINUS
' (U+002D
)