Skip to content

Commit

Permalink
Merge pull request #5895 from ilzamcmed/LPD-42395
Browse files Browse the repository at this point in the history
feat(@clayui/table):LPD 42395 Add tooltips to table action buttons in Clay Table
  • Loading branch information
matuzalemsteles authored Nov 20, 2024
2 parents 8e17c59 + 09038db commit 356cb11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/clay-core/src/table/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export const Cell = React.forwardRef<HTMLTableCellElement, Props>(
</Layout.ContentCol>
<Layout.ContentCol>
<button
aria-label={messages['sortDescription']}
className="component-action"
title={messages['sortDescription']}
type="button"
>
<Icon
Expand Down Expand Up @@ -286,7 +286,6 @@ export const Cell = React.forwardRef<HTMLTableCellElement, Props>(
{isExpandable && (
<Layout.ContentCol className="autofit-col-toggle">
<Button
aria-label={messages['expandable']}
borderless
displayType="secondary"
monospaced
Expand All @@ -299,6 +298,7 @@ export const Cell = React.forwardRef<HTMLTableCellElement, Props>(
}}
size="xs"
tabIndex={-1}
title={messages['expandable']}
>
<Icon
symbol={
Expand Down
1 change: 1 addition & 0 deletions packages/clay-core/src/table/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function HeadInner<T extends Record<string, any>>(
borderless
displayType="secondary"
monospaced
title={messages['columnsVisibility']}
>
<Icon symbol="caret-bottom" />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports[`Table basic rendering render dynamic content 1`] = `
aria-haspopup="true"
aria-label="Manage Columns Visibility"
class="dropdown-toggle btn btn-monospaced btn-outline-borderless btn-outline-secondary"
title="Manage Columns Visibility"
type="button"
>
<svg
Expand Down Expand Up @@ -195,6 +196,7 @@ exports[`Table basic rendering render static content 1`] = `
aria-haspopup="true"
aria-label="Manage Columns Visibility"
class="dropdown-toggle btn btn-monospaced btn-outline-borderless btn-outline-secondary"
title="Manage Columns Visibility"
type="button"
>
<svg
Expand Down Expand Up @@ -350,8 +352,8 @@ exports[`Table basic rendering render with sort column 1`] = `
class="autofit-col"
>
<button
aria-label="sortable column"
class="component-action"
title="sortable column"
type="button"
>
<svg
Expand Down Expand Up @@ -395,8 +397,8 @@ exports[`Table basic rendering render with sort column 1`] = `
class="autofit-col"
>
<button
aria-label="sortable column"
class="component-action"
title="sortable column"
type="button"
>
<svg
Expand Down Expand Up @@ -424,6 +426,7 @@ exports[`Table basic rendering render with sort column 1`] = `
aria-haspopup="true"
aria-label="Manage Columns Visibility"
class="dropdown-toggle btn btn-monospaced btn-outline-borderless btn-outline-secondary"
title="Manage Columns Visibility"
type="button"
>
<svg
Expand Down Expand Up @@ -584,6 +587,7 @@ exports[`Table basic rendering render with treegrid 1`] = `
aria-haspopup="true"
aria-label="Manage Columns Visibility"
class="dropdown-toggle btn btn-monospaced btn-outline-borderless btn-outline-secondary"
title="Manage Columns Visibility"
type="button"
>
<svg
Expand Down Expand Up @@ -673,9 +677,9 @@ exports[`Table basic rendering render with treegrid 1`] = `
class="autofit-col-toggle autofit-col"
>
<button
aria-label="expandable"
class="btn btn-monospaced btn-outline-borderless btn-outline-secondary btn-xs"
tabindex="-1"
title="expandable"
type="button"
>
<svg
Expand Down

0 comments on commit 356cb11

Please sign in to comment.