Skip to content

Commit dc95fe9

Browse files
committed
Rename .euiDataGridRowCell__expandButton to .euiDataGridRowCell__expandActions
1 parent 123f45b commit dc95fe9

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/components/datagrid/_data_grid_data_row.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@
159159
}
160160

161161
// Cell actions
162-
// Could probably be more precisely named than '__expandButton', since there can be multiple actions/buttons
163-
// TODO: Consider renaming this when working on https://github.com/elastic/eui/issues/5132
164-
.euiDataGridRowCell__expandButton {
162+
.euiDataGridRowCell__expandActions {
165163
display: flex;
166164
}
167165
@include euiDataGridRowCellActions($definedHeight: false) {

src/components/datagrid/_mixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ $euiDataGridStyles: (
8787
@if $definedHeight {
8888
// Defined heights are cells with row heights of auto, lineCount, or a static height
8989
// that set the __contentByHeight class
90-
.euiDataGridRowCell__contentByHeight + .euiDataGridRowCell__expandButton {
90+
.euiDataGridRowCell__contentByHeight + .euiDataGridRowCell__expandActions {
9191
@content;
9292
}
9393
} @else {
9494
// Otherwise, an undefined height (single flex row) will set __expandContent
95-
.euiDataGridRowCell__expandContent + .euiDataGridRowCell__expandButton {
95+
.euiDataGridRowCell__expandContent + .euiDataGridRowCell__expandActions {
9696
@content;
9797
}
9898
}

src/components/datagrid/body/data_grid_cell_actions.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('EuiDataGridCellActions', () => {
2828

2929
expect(component).toMatchInlineSnapshot(`
3030
<div
31-
className="euiDataGridRowCell__expandButton"
31+
className="euiDataGridRowCell__expandActions"
3232
>
3333
<EuiI18n
3434
default="Click or hit enter to interact with cell content"
@@ -65,7 +65,7 @@ describe('EuiDataGridCellActions', () => {
6565

6666
expect(component).toMatchInlineSnapshot(`
6767
<div
68-
className="euiDataGridRowCell__expandButton"
68+
className="euiDataGridRowCell__expandActions"
6969
>
7070
<Component
7171
Component={[Function]}

src/components/datagrid/body/data_grid_cell_actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const EuiDataGridCellActions = ({
3838
const buttonIconClasses = classNames('euiDataGridRowCell__expandButtonIcon', {
3939
'euiDataGridRowCell__expandButtonIcon-isActive': popoverIsOpen,
4040
});
41-
const buttonClasses = classNames('euiDataGridRowCell__expandButton', {
41+
const buttonClasses = classNames('euiDataGridRowCell__expandActions', {
4242
'euiDataGridRowCell__expandButton-isActive': popoverIsOpen,
4343
});
4444
const expandButton = (

0 commit comments

Comments
 (0)