Skip to content

Commit

Permalink
docs: playground style
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Oct 18, 2023
1 parent 4d87e64 commit 64450fe
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 9 deletions.
7 changes: 7 additions & 0 deletions apps/docs/assets/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.playground {
height: 400px;

iframe {
height: 100% !important;
}
}
2 changes: 1 addition & 1 deletion apps/docs/content/_components/accordionitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For example, `<summary>` elements are focusable and can be activated by pressing

## Playground

<Generate />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The component itself does not provide any specific accessibility features. Pleas

## Playground

<Generate style="height: 380px" />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ If you need to use Button with non-`<button>` tags like `<div>` you need to add

## Playground

<Generate />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ It's focusable and can be toggled with `Space`. -->

## Playground

<Generate style="height: 450px" />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ When using `SfChip` without any text label/description inside, you should specif

## Playground

<Generate style="height: 380px" />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/counter.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The root element of `SfCounter` is a `<span>`. Since a `<span>` is an inline ele

## Playground

<Generate />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The component is providing keyboard accessibility with `@keydown.esc="onEscKeyDo

## Playground

<Generate style="height: 600px"/>
<Generate class="playground" style="height: 600px;"/>

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The floating content area has an `aria-hidden` attribute that reflects the visib

## Playground

<Generate />
<Generate class="playground" />

#tab-2

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/_components/iconbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ When using an Icon without any additional label and/or description, you should s

## Playground

<Generate style="height: 380px" />
<Generate class="playground" />

#tab-2

Expand Down
1 change: 1 addition & 0 deletions apps/docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export default defineNuxtConfig({
failOnError: false,
},
},
css: ['@/assets/main.scss'],
});

0 comments on commit 64450fe

Please sign in to comment.