Skip to content

Commit 499e5b5

Browse files
authored
Merge branch 'main' into cass-gm-1017-icon
2 parents b5fa040 + d413790 commit 499e5b5

File tree

9 files changed

+30
-15
lines changed

9 files changed

+30
-15
lines changed

packages/gamut-kit/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [0.6.480](https://github.com/Codecademy/gamut/compare/@codecademy/gamut-kit@0.6.479...@codecademy/gamut-kit@0.6.480) (2025-02-28)
7+
8+
**Note:** Version bump only for package @codecademy/gamut-kit
9+
610
### [0.6.479](https://github.com/Codecademy/gamut/compare/@codecademy/gamut-kit@0.6.478...@codecademy/gamut-kit@0.6.479) (2025-02-20)
711

812
**Note:** Version bump only for package @codecademy/gamut-kit

packages/gamut-kit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@codecademy/gamut-kit",
33
"description": "Styleguide & Component library for Codecademy",
4-
"version": "0.6.479",
4+
"version": "0.6.480",
55
"author": "Codecademy Engineering <dev@codecademy.com>",
66
"dependencies": {
7-
"@codecademy/gamut": "59.0.10",
7+
"@codecademy/gamut": "59.0.11",
88
"@codecademy/gamut-icons": "9.38.3",
99
"@codecademy/gamut-illustrations": "0.53.3",
1010
"@codecademy/gamut-patterns": "0.10.6",

packages/gamut/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [59.0.11](https://github.com/Codecademy/gamut/compare/@codecademy/gamut@59.0.10...@codecademy/gamut@59.0.11) (2025-02-28)
7+
8+
**Note:** Version bump only for package @codecademy/gamut
9+
610
### [59.0.10](https://github.com/Codecademy/gamut/compare/@codecademy/gamut@59.0.9...@codecademy/gamut@59.0.10) (2025-02-20)
711

812
### Bug Fixes

packages/gamut/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codecademy/gamut",
33
"description": "Styleguide & Component library for Codecademy",
4-
"version": "59.0.10",
4+
"version": "59.0.11",
55
"author": "Codecademy Engineering <dev@codecademy.com>",
66
"dependencies": {
77
"@codecademy/gamut-icons": "9.38.3",

packages/gamut/src/Anchor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const Anchor = forwardRef<
120120
icon,
121121
iconOffset,
122122
iconPosition = 'left',
123-
iconSize = 12,
123+
iconSize = 16,
124124
iconAndTextGap = 8,
125125
isInlineIcon = true,
126126
variant = 'inline',

packages/gamut/src/Button/shared/InlineIconButton.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type InlineIconButtonComponents =
1313

1414
type InlineIconButtonType = InlineIconButtonComponents & {
1515
button: React.ComponentType<InlineIconButtonComponents>;
16+
iconSize?: number;
1617
};
1718

1819
export const InlineIconButton = forwardRef<
@@ -30,7 +31,12 @@ export const InlineIconButton = forwardRef<
3031
},
3132
ref
3233
) => {
33-
const content = appendIconToContent({ iconPosition, icon, children });
34+
const content = appendIconToContent({
35+
iconPosition,
36+
icon,
37+
iconSize: props.size === 'small' ? 12 : 16,
38+
children,
39+
});
3440
return (
3541
<Button {...props} variant={variant} ref={ref}>
3642
{content}

packages/styleguide/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [70.1.2](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@70.1.1...@codecademy/styleguide@70.1.2) (2025-02-28)
7+
8+
**Note:** Version bump only for package @codecademy/styleguide
9+
610
### [70.1.1](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@70.1.0...@codecademy/styleguide@70.1.1) (2025-02-10)
711

812
**Note:** Version bump only for package @codecademy/styleguide

packages/styleguide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codecademy/styleguide",
33
"description": "Styleguide & Component library for codecademy.com",
4-
"version": "70.1.1",
4+
"version": "70.1.2",
55
"author": "Codecademy Engineering",
66
"license": "MIT",
77
"publishConfig": {

packages/styleguide/src/lib/Atoms/Buttons/Button/Button.stories.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
Box,
33
FillButton,
4+
FlexBox,
45
GridBox,
56
IconButton,
67
StrokeButton,
@@ -39,9 +40,9 @@ export const Secondary: Story = {
3940
},
4041
};
4142

42-
const InlineIconsExample = () => {
43-
return (
44-
<GridBox gridTemplateColumns="1fr 1fr 1fr 3fr">
43+
export const InlineIcons: Story = {
44+
render: () => (
45+
<FlexBox row gap={16}>
4546
<FillButton maxWidth="fit-content" icon={MiniArrowLeftIcon}>
4647
FillButton
4748
</FillButton>
@@ -55,12 +56,8 @@ const InlineIconsExample = () => {
5556
>
5657
TextButton
5758
</TextButton>
58-
</GridBox>
59-
);
60-
};
61-
62-
export const InlineIcons: Story = {
63-
render: () => <InlineIconsExample />,
59+
</FlexBox>
60+
),
6461
};
6562

6663
const buttons = [FillButton, IconButton, StrokeButton, TextButton] as const;

0 commit comments

Comments
 (0)