Logo is a component used inside the Header and Footer components. Logo prodives options to customize the language and appearance in addition to theme.
<duet-logo language="fi" size="medium"></duet-logo>
<duet-logo language="fi" size="large"></duet-logo>
<div class="duet-background-secondary-turva duet-p-large duet-mt-large duet-radius-default">
<duet-logo language="sv" size="medium" inverse></duet-logo>
<duet-logo language="en" size="large" inverse></duet-logo>
| || ||Where the logo links to.|| || |
| || ||Use inverse version of the logo (white logo on dark background).|| || |
| || ||[DEPRECATED] this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing |
The language of the logo.
| || |
| || ||Controls the margin of the component.|| || |
| || ||Size variation of the logo.|| || |
| || ||Theme of the logo.|| || |
setFocus(options?: FocusOptions) => Promise<void> #
Sets focus on the specified
duet-logo. Use this method instead of the global
This section includes guidelines for designers and developers about the usage of this component in different contexts.
When to use #
- If you need LocalTapiola or Turva logo or their language variants.
When not to use #
- If you need another brand’s logo.
This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.
- Logo renders as either regular anchor tag or a div depending whether a
hrefwas passed or not.
- Logo doesn’t currently have any added functionality for assistive technologies.
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Using CLI ToolsTutorials
Creating Custom PatternsTutorials
Server Side RenderingTutorials
Usage With MarkdownTutorials
If you experience any issues while using a component, please head over to the Support page for more guidelines and help.