Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IconButton size prop default should be lg #13423

Closed
1 task
tay1orjones opened this issue Mar 29, 2023 · 0 comments · Fixed by #13287
Closed
1 task

[Bug]: IconButton size prop default should be lg #13423

tay1orjones opened this issue Mar 29, 2023 · 0 comments · Fixed by #13287
Assignees

Comments

@tay1orjones
Copy link
Member

tay1orjones commented Mar 29, 2023

Package

@carbon/react

Browser

Chrome

Package version

1.25.0

React version

17

Description

IconButton's size prop has an incorrect default of md. Buttons have a default size of lg, and this includes the IconButton. Button with hasIconOnly works correctly.

Some background on this:

Tasks

Preview Give feedback
@tay1orjones tay1orjones added severity: 2 https://ibm.biz/carbon-severity component: button labels Mar 29, 2023
@tay1orjones tay1orjones moved this to ⏱ Backlog in Design System Mar 29, 2023
janhassel added a commit to janhassel/carbon that referenced this issue Mar 29, 2023
@kodiakhq kodiakhq bot closed this as completed in #13287 Jun 2, 2023
kodiakhq bot added a commit that referenced this issue Jun 2, 2023
* chore: rename Layout folder into LayoutDirection

* feat: build contextual layout poc

* docs: add layoutSize and layoutDensity controls to storybook

* chore(contained-list): migrate to contextual layout tokens

* chore(content-switcher): migrate to contextual layout tokens

* feat(contextual-layout-tokens): add support for redefinition

* chore(tag): migrate to contextual layout tokens

* feat(contextual-layout-tokens): support multiple properties per group

* docs(styles): add contextual layout tokens

* chore(button): migrate to contextual layout tokens

* docs(contextual-layout-tokens): add reference

* chore(icon-button): migrate to contextual layout tokens

* fix(code-snippet): adjust style overrides for icon button

* docs(contextual-layout-tokens): add sass helper outputs

* fix(contained-list): adjust padding-block based on line-height

* fix(code-snippet): adjust copy-button overrides

* fix(file-uploader): emit layout size

* docs(contextual-layout-tokens): add docs to Layout story

* fix(code-snippet): pass correct size

* docs(contained-list): fix stories

* fix(icon-button): make default lg

ref #13423

* fix(readme): resolve conflict

* chore: align v12 deprecation comments

* chore: revert local .all-contributors updates

* docs(contextual-layout-tokens): fix comment position

* chore: rename storybook layout controls

* chore: only show layout controls in dev storybook

* fix(button): move icon up 1px

* fix(accordion): fix arrow icon position

* fix(icon-button): fix icon position

* fix(icon-button): fix icon position

* fix(overflow-menu): fix icon position

* fix(ui-shell): fix header action icon position

* fix(code-snippet): fix icon position in button

* fix(pagination): fix icon position in button

* refactor(contextual-layout-tokens): alternative poc

* refactor(contextual-layout-token): implement LayoutConstraint system

* refactor(contextual-layout-tokens): re-implement redefine-tokens mixin

* docs(contextual-layout-tokens): update docs to reflect refactor

* fix(conextual-layout-tokens): remove outdated workarounds

* fix(contained-list): make persistent search work with size variants

* fix(content-switcher): fix icon-only styles

* chore: update datatable snapshot

* docs(layout): add information about LayoutConstraint

* fix(copy-button): wrap in LayoutConstraint

* chore: run prettier

* fix: revert unrelated sort change in package.json

* chore: update toc of style/docs/sass.md

* docs(contextual-layout-tokens): fix css reference

* docs(contextual-layout-tokens): fix copy-paste mistake

---------

Co-authored-by: Alison Joseph <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from ⏱ Backlog to ✅ Done in Design System Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants