Skip to content

Commit ed184a6

Browse files
authored
feat: buttons v2 (#1269)
* 🚧 Init commit * 🚧 Adding tokens * 🚧 Tests and adjustments * 🚧 Add link to icon button * 🚧 Fix linting issues * 🚧 Requested changes * 🚧 Add loading icon story * 🚧 Copy pasting issues * 🚧 Add more tests * 🚧 Fix imports and tests * 🚧 Remove unused method * 🚧 Fix size on loading if icon is present * 🚧 Update version * 🚧 Add double icon variant to storybook * 🚧 Change to tokens and add height to normal button * empty commit * 🚧 Adjust icon button styling * 🚧 Requested changes
1 parent 9f373a4 commit ed184a6

49 files changed

Lines changed: 1022 additions & 797 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@equinor/amplify-component-lib",
3-
"version": "12.0.7",
3+
"version": "13.0.0",
44
"description": "Frontend Typescript components for the Amplify team",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -20,7 +20,9 @@
2020
],
2121
"sideEffects": false,
2222
"scripts": {
23+
"clean": "rm -rf node_modules/.cache/storybook node_modules/.vite",
2324
"start": "storybook dev -p 6006",
25+
"start:fresh": "npm run clean && storybook dev -p 6006",
2426
"build-storybook": "storybook build",
2527
"pretty": "prettier --check ./config ./src ./.storybook",
2628
"pretty:fix": "prettier --write ./config ./src ./.storybook",

src/molecules/Banner/Banner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const Variants: Story = {
7272
export const CustomContent: Story = {
7373
tags: ['test-only'],
7474
args: {
75-
children: <Button>Custom button</Button>,
75+
children: <Button label="Custom button"></Button>,
7676
},
7777
play: async ({ canvas }) => {
7878
await expect(

src/molecules/Button/Button.docs.mdx

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)