Skip to content

[Bug]: IconButton outlines overflow TableCell boundaries #21150

@adamalston

Description

@adamalston

Package

@carbon/react

Browser

No response

Package version

1.97.0

React version

No response

Description

The outline of IconButton components within TableCell components overflows the parent component's boundaries.

I may have traced this issue to styles added in #19043:

.#{$prefix}--tooltip-trigger__wrapper .#{$prefix}--btn--ghost:focus {
box-shadow: none;
outline: 2px solid $focus;
}

When these styles are enabled, the outline overflows the table cell:

styles-enabled

When the styles are disabled, the outline stays within the cell:

styles-disabled

This issue is a regression in styles as v1.84.0 did not include the issue.

I am not using a regular expansion DataTable. I am using @tanstack/react-table which is related to https://github.com/carbon-design-system/tanstack-carbon.

Reproduction/example

N/A

Steps to reproduce

I can’t get a reproduction environment working right now due to the complexities of mixing @tanstack/react-table with @carbon/react. That said, I will keep trying. I'm opening this issue anyway to see if anyone notices an obvious change that should be made. Notably, the block of code linked in the description appears to contain the only selector in that file that doesn’t include a tree segment. I wonder if that selector should be more specific.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

DataPower

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions