-
Notifications
You must be signed in to change notification settings - Fork 30
Football mini match stats component #14947
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
base: main
Are you sure you want to change the base?
Conversation
1c67a32 to
985cf1c
Compare
| return ( | ||
| <div css={containerCss}> | ||
| <div css={[headerCss, raiseLabelOnDesktop && raiseLabelCss]}> | ||
| <span css={labelCss}>{label}</span> |
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.
It might make sense for this to be a heading? (Although the heading level would need to be configurable as it can appear in different places.)
| <span css={buttonTextCss}>More stats, line-ups and tables</span> | ||
| <span css={buttonTextShortCss}>Stats and line ups</span> |
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.
I've hardcoded the button labels for now, but this could be made configurable later if needed
|
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. |
| raiseLabelOnDesktop?: boolean; | ||
| largeNumbersOnDesktop?: boolean; |
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.
I don't love these prop names so I'm open to suggestions
a2bb58f to
c042bad
Compare
a976989 to
bf48cbd
Compare
What does this change?
Adds
FootballMiniMatchStatsand constituentFootballMatchStatcomponents.Why?
To enable the display of key match statistics in football match live blogs in DCAR (#14898). The
FootballMatchStatcomponent will also be used in the new match summary page (#14904).Screenshots