From 8114072d0a3fab2fb727b4c74744c85550c07d8b Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 26 Jan 2024 14:34:40 -0500 Subject: [PATCH] feat(Tile): update Tile AI styles to phase 2 spec (#15596) * feat(Tile): update Tile AI styles to phase 2 spec * chore(Tile): add sasdocs, mark tokens for deprecation * fix(Tile): update selected state * chore(Button): remove test story * fix(Tile): adjust hover gradient --- .../__snapshots__/PublicAPI-test.js.snap | 3 + .../src/components/Button/Button.stories.js | 19 +----- packages/styles/scss/__tests__/theme-test.js | 3 + .../styles/scss/components/modal/_modal.scss | 2 +- .../styles/scss/components/tile/_tile.scss | 24 +++++-- .../styles/scss/utilities/_ai-gradient.scss | 67 +++++++++++-------- packages/themes/src/g10.js | 29 ++++---- packages/themes/src/g100.js | 29 ++++---- packages/themes/src/g90.js | 29 ++++---- .../__tests__/__snapshots__/v11-test.js.snap | 3 + .../src/tokens/__tests__/metadata-test.js | 12 ++++ packages/themes/src/tokens/v11TokenGroup.js | 3 + packages/themes/src/white.js | 29 ++++---- 13 files changed, 143 insertions(+), 109 deletions(-) diff --git a/packages/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap index 3f34360306e7..8fff0c0b228f 100644 --- a/packages/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -3,6 +3,9 @@ exports[`Public API should only change with a semver change 1`] = ` Array [ "aiAuraEnd", + "aiAuraHoverBackground", + "aiAuraHoverEnd", + "aiAuraHoverStart", "aiAuraStart", "aiBorderEnd", "aiBorderStart", diff --git a/packages/react/src/components/Button/Button.stories.js b/packages/react/src/components/Button/Button.stories.js index b8aac1a0b105..364a5321f6b9 100644 --- a/packages/react/src/components/Button/Button.stories.js +++ b/packages/react/src/components/Button/Button.stories.js @@ -7,7 +7,7 @@ import React from 'react'; import { action } from '@storybook/addon-actions'; -import { Add, FitToScreen } from '@carbon/icons-react'; +import { Add } from '@carbon/icons-react'; import { default as Button, ButtonSkeleton } from '../Button'; import ButtonSet from '../ButtonSet'; import mdx from './Button.mdx'; @@ -63,23 +63,6 @@ export const Default = (args) => { return ; }; -export const ButtonTest = () => { - const sizes = ['sm', 'md', 'lg', 'xl']; - return ( -
- {sizes.map((size) => ( -
- -
-
-
- ))} -
- ); -}; - export const Secondary = (args) => { return (