Skip to content

Commit e61bc09

Browse files
authored
Merge pull request #700 from strapi/fix/document-button-color-tokens
[Fix] Document button color tokens to sroy
2 parents 852cdd8 + 7fa8e6a commit e61bc09

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

packages/strapi-design-system/src/themes/Theme.stories.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This is the light colors used for the light mode
3131
{() => {
3232
const { color } = lightColorTokenObject;
3333
/* Excluding warning since they don't have enough contrast on for neutral900 and neutral0 */
34-
const colorsKey = Object.keys(color).filter((color) => !color.includes('warning') && !color.includes('button'));
34+
const colorsKey = Object.keys(color).filter((color) => !color.includes('warning'));
3535
const colors = [];
3636
const conditions = ['600', '700', '800', '900', '1000'];
3737
let ruptureKey;

packages/strapi-design-system/tests/__snapshots__/storyshots.spec.js.snap

+40
Original file line numberDiff line numberDiff line change
@@ -46360,6 +46360,46 @@ exports[`Storyshots Design System/Components/Theme light colors 1`] = `
4636046360
</div>
4636146361
</div>
4636246362
</div>
46363+
<div
46364+
class="c4"
46365+
>
46366+
<div
46367+
class="c5"
46368+
>
46369+
<div
46370+
class="c6 c7"
46371+
spacing="2"
46372+
>
46373+
<div
46374+
style="padding: 12px; background: rgb(255, 255, 255);"
46375+
>
46376+
<p
46377+
style="color: black;"
46378+
>
46379+
buttonNeutral0
46380+
</p>
46381+
</div>
46382+
<div
46383+
style="padding: 12px; background: rgb(123, 121, 255);"
46384+
>
46385+
<p
46386+
style="color: black;"
46387+
>
46388+
buttonPrimary500
46389+
</p>
46390+
</div>
46391+
<div
46392+
style="padding: 12px; background: rgb(73, 69, 255);"
46393+
>
46394+
<p
46395+
style="color: white;"
46396+
>
46397+
buttonPrimary600
46398+
</p>
46399+
</div>
46400+
</div>
46401+
</div>
46402+
</div>
4636346403
<div
4636446404
class="c4"
4636546405
>

0 commit comments

Comments
 (0)