Skip to the page

Components

Team banner

The banner names whose numbers are on the card.

In use

Kyle Schwarber (PHI)Phillies, designated hitter
A player, in his team's colour.
Jesús Sánchez (TOR, AZ)Blue Jays and D-backs, designated hitter
A player who played for two teams.
Milwaukee Brewers (MIL)2 wins
Tampa Bay Rays (TB)0 wins

The first team to win four games wins the World Series.

GameDateResult
Game 1Oct 23Brewers 3, Rays 2
Game 2Oct 24Brewers 5, Rays 4
Game 3Oct 26In Tampa Bay
Two teams in a head-to-head.

Anatomy

  1. PhotoPlayers only. The cut-out headshot on a grey circle.
  2. LogoEach team's logo on a white circle, overlapping the photo.
  3. NameThe full name and team abbreviation, in bold.
  4. Team and positionPlayers only.
  5. Score, optionalLarge, at the far end, in a head-to-head.

When to use it

Use the banner at the top of any card about a player or a team.

When not to use it

Never add a coloured stripe down one side, and never change a team’s colour to fit the page.

Accessibility

Text reaches 4.5:1 against the team’s colour, and every team’s contrast is on Colour. The photo and logos are decorative.

Tokens

In code: TeamBlock in src/ds/components/TeamBlock, with Identity laying out who it is

Tokens
TokenWhat it sets
--ds-face-badgeThe grey circle behind the photo.
--ds-logo-badgeThe white circle behind each logo.
--ds-logo-badge-sizeThe 40px circles.
--ds-border-edgeThe outline on a team colour that would vanish into the page.
--ds-radius-mdThe corners.
One layout everywhere. Every player or team is shown the same way everywhere, with the player's photo and a logo for each team before the full name, and the team and position under it. A "Which one?" choice has no photo, because a choice doesn't carry the player's MLB id. A row in a leaders table has no team and position line, because MLB's leaders list doesn't give positions. Narrower than 17.5rem (280px), the photo and logos sit above the name, and wider than that they sit beside it.
A traded player. A player who played for more than one team in the season asked about gets no team colour. His block is neutral and shows every team's logo, starting with the team he played for most.