Skip to content

Commit 284a4db

Browse files
authored
fix(www/guidelines): Fix transition token doc (#15824)
Thanks to @greglobinski for spotting this: The `transition` tokens on `/guideines/design-tokens` were mislabeled as `color`, e.g. the token `transition.curve.default` was mistakenly labeled `colors.curve.default`.
1 parent f838d00 commit 284a4db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

www/src/pages/guidelines/design-tokens.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,15 @@ const DesignTokens = ({ location }) => (
630630
</tr>
631631
</thead>
632632
<tbody>
633-
{Object.keys(theme.transition).map((color, i) => {
634-
if (typeof theme.transition[color] === `object`) {
635-
return Object.keys(theme.transition[color]).map(
636-
(range, i) => (
633+
{Object.keys(theme.transition).map(token => {
634+
if (typeof theme.transition[token] === `object`) {
635+
return Object.keys(theme.transition[token]).map(
636+
(value, i) => (
637637
<tr key={`tokens-transition-${i}`}>
638638
<td>
639-
<code>{`colors.${color}.${range}`}</code>
639+
<code>{`transition.${token}.${value}`}</code>
640640
</td>
641-
<td>{theme.transition[color][range]}</td>
641+
<td>{theme.transition[token][value]}</td>
642642
</tr>
643643
)
644644
)

0 commit comments

Comments
 (0)