Hero Image

Components

Brands

Play around with props, edit and copy code.

Brands

Use configuration to change brand and size.

Brands torn

Used by Svenska Spel Tur for Skrapspel products to combine two brands with a torn edge between.

Partners / Banks

Use configuration to change Bank and size.

Symbols

Use configuration to change Symbol and size.

Properties

Brand

Prop nameTypeDefault ValueDescription
classNamestring'brand brand-default'Custom css class
altstringAlternative text for image
bgColorstringRectangle and square background color
brandunionWhich brand to show
classstringCustom css class
emblemboolShow winner emblem
outlineboolAdds an outline to the emblem
rectangleboolShow product color as background
sizeunionSet size of the brand
squareboolShow brand as a square

BrandsTorned

Prop nameTypeDefault ValueDescription
childrennodeBrand torned items
classNamestringCustom Class

BrandsTornedItem

Prop nameTypeDefault ValueDescription
isTornedboolfalseSet true to get a left torned item ( defaults to false)
bgColorstringAny svs color i.e grey-100, keno-200 etc.
childrennodeBrand
classNamestringCustom Class

Bank

Prop nameTypeDefault ValueDescription
classNamestring'bank bank-default'Custom css class
altstringAlternative text for image
classstringCustom css class
heightnumberSpecify height
nameunionWhich svg to show
sizeunionSet predefined size of the svg
widthnumberSpecify width

Symbols

Prop nameTypeDefault ValueDescription
classNamestring'symbols symbols-default'Custom css class
altstringAlternative text for image
classstringCustom css class
heightnumberSpecify height
nameunionWhich svg to show
sizeunionSet predefined size of the svg
widthnumberSpecify width

Accessibility

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines.

Additional information regarding accessibility of this component below.

  • Brands is an image with product name as alternative text.
  • Symbol and Bank are images with image name as alternative text.

Read more about WCAG 2.1 AA.

Add new brand

Brands is vectorized utilizing SVG's instead of massive spritesheets. Each logotype is created without emblem, i.e "vinnare" to increase the possibilities of adapting the logo to different needs.

First of you need to checkout trinidad-ui from Svenska Spels internal git repository.

Getting started developing trinidad-ui
  1. Add your new brand to the source folder.
  2. type npm install then npm start in terminal
  3. Select Developer Tools -> Asset Generators -> Brands (your component)
  4. Wait for success message.
  5. run npm start again, select "Develop both trinidad / storybook".
  6. Confirm your changes
  7. Run npm start once more, select "New release".
  8. Commit and be happy!

Additional knowledge

You are now allowed to add a corresponding .json file next to your brand with the following schema:

JSON Schema

{
  "aliases": "lotto onsdag, lotto-onsdag", // Use same brand with different names
  "alt": "Lotto" // Alt text to the image element
}

Add new Bank or Symbol

Will take a nicely baked .svg file and compress and add checksum to it to prevent caching when replacing assets.

First of you need to checkout trinidad-ui from Svenska Spels internal git repository.

Getting started developing trinidad-ui
  1. Add your new svg to the source folder.
  2. type npm install then npm start in terminal
  3. Select Developer Tools -> Asset Generators -> Generate SVG (your component)
  4. Wait for success message.
  5. run npm start again, select "Develop both trinidad / storybook".
  6. Confirm your changes
  7. Run npm start once more, select "New release".
  8. Commit and be happy!