[Bug]: TableToolbarMenu size and color incorrect #10058
Labels
component: data-table
package: @carbon/react
@carbon/react
package: styles
@carbon/styles
type: bug 🐛
Milestone
Package
carbon-components
Browser
Chrome
Package version
@carbon/[email protected]
Description
The element does not respect the size constraints when
<TableToolbar size="sm">
, causing the icon to be misaligned:The parent to the svg element does not have a set
color
and thus the svgfill
cannot correspond to the current theme:This should probably be
$icon-01
.CodeSandbox example
https://codesandbox.io/s/youthful-driscoll-vbjk5?file=/src/index.js
Steps to reproduce
@carbon/[email protected]
, create a TableTooblar with a TableToolbarMenu.fill
property is set tocurrentcolor
The icon fill can be fixed by adding
color: var(--cds-icon-primary)
to theTableToolbarMenu
, although IMO it would be nice if every icon had thefill
property defaulting to$icon-01
instead of needing to inherit that from its parents color.Code of Conduct
The text was updated successfully, but these errors were encountered: