Skip to content

Commit

Permalink
docs: update changeset, yml docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 committed May 9, 2024
1 parent 20178ac commit 855edd3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .changeset/light-years-speak.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,17 @@ feat(tooltip): Spectrum 2 migration
This migration includes updated colors, rounding, a bigger tip, and the removal of variants (only neutral is available in Spectrum 2). As a result of the deprecation of variants, icons have also been removed.

The redesign of the tip, specifically the rounding, required a reworking of how we use clip-path and transform.

Some custom property mods have been removed:

- `--mod-tooltip-background-color-informative`
- `--mod-tooltip-background-color-negative`
- `--mod-tooltip-background-color-positive`
- `--mod-tooltip-icon-spacing-block-start`
- `--mod-tooltip-icon-spacing-inline-end`
- `--mod-tooltip-icon-spacing-inline-start`
- `--mod-tooltip-icon-width`

And one mod has been added:

- `--mod-tooltip-tip-corner-radius`
17 changes: 16 additions & 1 deletion components/tooltip/metadata/tooltip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@ sections:
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/tooltip/metadata/mods.md">here</a>.
- name: Migration Guide
description: |
### Tooltip now has 22 directions
### Version 7.0.0
#### Spectrum 2 migration
This migration includes updated colors, rounding, a bigger tip, and the removal of variants (only neutral is available in Spectrum 2). As a result of the deprecation of variants, icons have also been removed. The redesign of the tip, specifically the rounding, required a reworking of how we use clip-path and transform. Some custom property mods have been removed:
- `--mod-tooltip-background-color-informative`
- `--mod-tooltip-background-color-negative`
- `--mod-tooltip-background-color-positive`
- `--mod-tooltip-icon-spacing-block-start`
- `--mod-tooltip-icon-spacing-inline-end`
- `--mod-tooltip-icon-spacing-inline-start`
- `--mod-tooltip-icon-width`
And one mod has been added:
- `--mod-tooltip-tip-corner-radius`
### Spectrum 1 versions
#### Tooltip now has 22 directions
- 10 of the new directions are logical and should be tested both left-to-right and right-to-left
examples:
- id: tooltip
Expand Down

0 comments on commit 855edd3

Please sign in to comment.