Search the design system

Components – legacy

Ribbon

Play around with props, edit and copy code.

Parent div must be set to position: relative;

Branding

JackpotExampleJackpotExampleJackpotExample

How to create and implement a new branding

  • Internal use (Trinidad)

    // Less mixins
    .ribbon-corner-branding-example {
      .ribbon-corner-branding(linear-gradient({background}, {color of text});
    }
    
    // Example of branding for Bingo
    .ribbon-corner-branding-bingo {
      .ribbon-corner-branding(linear-gradient(115deg, #685232 47.49%, #C8AE86 72.29%, #F1D4AA 78.95%, #C8AE86 84.71%, #685232 97.43%), @white);
    }
    
    // Example of branding for Triss
    .ribbon-corner-branding-triss {
      .ribbon-corner-branding(@black, @yellow);
    }
    
    <RibbonCorner branding="bingo" size={700}>
      <span>Jackpot</span>
      <span>256 371 kr</span>
    </RibbonCorner>
  • External use

    // Less
    .ribbon-corner-branding-bingo {
        .ribbon-corner-content {
          background: linear-gradient(115deg, #685232 47.49%, #C8AE86 72.29%, #F1D4AA 78.95%, #C8AE86 84.71%, #685232 97.43%);
          color: var(--white);
      }
      .ribbon-corner-content-holder:nth-child(1),
      .ribbon-corner-content-holder:nth-child(3) {
        color: transparent;
      }
    }
    
    // React example for Bingo
    <RibbonCorner branding="bingo" size={700}>
      <span>Jackpot</span>
      <span>256 371 kr</span>
    </RibbonCorner>

Properties

RibbonCorner

Prop nameTypeDefault ValueDescription
brandingstringSet branding
childrennodeContent
classNamestringAdd custom classes
sizeunionSet size of the ribbon

RibbonBanner

Prop nameTypeDefault ValueDescription
brandingstringSet branding
childrennodeContent
classNamestringAdd custom classes
directionunionSet position to left or right
offsetTopnumberDistance in pixels from top
sizeunionSet size of the ribbon

Accessibility

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

Read more about WCAG 2.1 AA.

ComponentsRibbon / Usage
ComponentsSausage / Usage

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.3.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se