File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
modules/react/button/lib/parts Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
6
+ ## [v11.1.18](https://github.com/Workday/canvas-kit/releases/tag/v11.1.18) (2024-10-23)
7
+
8
+ ### Components
9
+
10
+ - fix: Ensure button label icon uses rem ([#3001](https://github.com/Workday/canvas-kit/pull/3001)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera)
6
11
## [v12.0.5](https://github.com/Workday/canvas-kit/releases/tag/v12.0.5) (2024-10-23)
7
12
8
13
### Documentation
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
2
2
import { ButtonSizes } from '../types' ;
3
3
import { createComponent } from '@workday/canvas-kit-react/common' ;
4
4
import { SystemIcon , SystemIconProps } from '@workday/canvas-kit-react/icon' ;
5
+ import { px2rem } from '@workday/canvas-kit-styling' ;
5
6
6
7
export interface ButtonLabelIconProps extends Partial < SystemIconProps > {
7
8
/**
@@ -42,8 +43,8 @@ export const ButtonLabelIcon = createComponent('span')({
42
43
size = { iconSize }
43
44
icon = { icon }
44
45
shouldMirror = { shouldMirrorIcon }
45
- width = { size ? iconSizes [ size ] : iconSizes . large }
46
- height = { size ? iconSizes [ size ] : iconSizes . large }
46
+ width = { px2rem ( iconSize ) }
47
+ height = { px2rem ( iconSize ) }
47
48
display = "inline-block"
48
49
{ ...elemProps }
49
50
/>
You can’t perform that action at this time.
0 commit comments