-
Notifications
You must be signed in to change notification settings - Fork 30
Football match header #15020
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
Football match header #15020
Conversation
The tabs component of the new football match header design. Note that this does not yet include "live" styles.
The new designs for the football match header that will appear across match info pages, liveblogs, and match reports. It makes use of a similar implementation for displaying scores as the previous version, i.e. SVGs, but uses the existing `BigNumber` component. Note that this does not yet include the designs for the live version.
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
| case 7: | ||
| case 8: | ||
| case 9: | ||
| case 10: |
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.
| case 10: |
If we remove 10 all double digit scores will share the same spacing and alignment logic ?
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.
Good point! Updated.
For the scores, all other 2-digit numbers are created by combining single-digit numbers, so we should also do this for 10. Also updated the spacing between numbers so that a 10 created by combining single-digit numbers looks the same as the 10 SVG.
|
Seen on PROD (merged by @JamieB-gu 9 minutes and 23 seconds ago) Please check your changes! |
The new designs for the football match header (#14901) that will appear across match info pages, liveblogs, and match reports. It makes use of a similar implementation for displaying scores as the previous version, i.e. SVGs, but uses the existing
BigNumbercomponent.Note that this does not yet include the designs for the live version.
Note: This is opened against #14997 for now, until that's merged.
Examples
See Storybook for more examples, and different breakpoints.