Skip to content

Commit

Permalink
docs: spacing docs tip & typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Feb 17, 2023
1 parent 59df88b commit dc44a3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/components/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can also use `default` slot to render your custom content if you don't want
:::

:::warning
When you override the list item via CSS variable, it's up to you to handle `--a-spacing` CSS var. For example, you are overriding list gap and don't want to consider the `--a-spacing` variable then you can simply override it via `[--a-spacing:1rem]`. However, if you want to allow spacing modification then write `[--a-spacing:calc(1rem*var(--a-spacing))]`
When you override the list item via CSS variable, it's up to you to handle `--a-spacing` CSS var. For example, you are overriding list gap and don't want to consider the `--a-spacing` variable then you can simply override it via `[--a-spacing:1]`. However, if you want to allow spacing modification then write `[--a-spacing:calc(1*var(--a-spacing))]`

For in library example you can check `.a-list-items-pill` class styles.
:::
Expand Down
11 changes: 11 additions & 0 deletions docs/guide/features/spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ You can use `spacing-<number>` class to add/update `--a-spacing` CSS variable.
</ABtn>
</template>
```

:::tip Wanna have some fun 馃槣
You can reduce overall spacing of all components by updating `--a-spacing` CSS var from `:root`

```css
:root {
--a-spacing: 0.9;
}
```

:::

0 comments on commit dc44a3a

Please sign in to comment.