Replies: 4 comments
-
Will no longer have square icon buttons, but users can use existing buttons and override the border radius. All variants not already included in primary/secondary/tertiary will be dropped. Will need to assess who/how many people are using icon buttons to help manage the conversion |
Beta Was this translation helpful? Give feedback.
-
Tooltip is not built in for icon buttons, but it was something we considered. Now that icon buttons will be merged, we need to revisit our approach. |
Beta Was this translation helpful? Give feedback.
-
This is what I was thinking for a mapping from old buttons to new. The border adds a lot of visual weight/clutter, so I've been thinking the majority would map to TertiaryButton Circle => TertiaryButton |
Beta Was this translation helpful? Give feedback.
-
From 1/6 v7 buttons sync: Button Change History
V6 (COMPLETED)
V7 (UPCOMING)
Future Work
V7 Icon Button Updates (CONT.)
|
Beta Was this translation helpful? Give feedback.
-
To simplify our button designs and APIs, we have been discussing removing the
IconButton
component and just utilizing a Primary, Secondary or Tertiary button with an icon and no label. This would drastically simplify our button taxonomy and code complexity.Below are some of my thoughts as I think through how we would realize this in code. Still very WIP.
IconButton
The
IconButton
component will be removed and instead, users will just add an icon with no label toa
PrimaryButton
,SecondaryButton
, orTertiaryButton
. It will use the existing styling, butwill need some tweaks to how we calculate spacing within the button.
Compound Component
Does a compound component structure add value here?
Spacing Calculation
The way we currently calculate spacing within buttons is a bit confusing. It involves multiple paddings/margins added together and even some negative margins. We should clean this up as part of this effort.
Toggleability
Toggle prop is removed. We now have a component that flips between the
type
button style and thePrimary button style. In addition, we'll also fill the icon for the toggled on state.
ToolbarIconButton
Not sure exactly what to do about this yet. We could deprecate it and move it into the PT-PLAT repo, but there are more than a few use cases for it.
Also wondering if we should support the old
circleFilled
style through this as well. There are lessuse cases for this.
Beta Was this translation helpful? Give feedback.
All reactions