Skip to content

Commit

Permalink
fix(ribbon-item): rename elementStyle to contentStyle for clarity in …
Browse files Browse the repository at this point in the history
…WzTextWithTooltipIfTruncated component
  • Loading branch information
guidomodarelli committed Dec 11, 2024
1 parent 5fc9bd8 commit 0ab2271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const WzRibbonItem = (props: RibbonItemProps) => {
style={item.style}
/>
) : (
<WzTextWithTooltipIfTruncated elementStyle={item.style}>
<WzTextWithTooltipIfTruncated contentStyle={item.style}>
{item.render ? (
item.render()
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import './wz-text-with-tooltip-if-truncated.scss';

interface WzTextWithTooltipIfTruncatedProps extends React.PropsWithChildren {
tooltip?: string;
elementStyle?: React.CSSProperties;
contentStyle?: React.CSSProperties;
tooltipProps?: object;
}

export default class WzTextWithTooltipIfTruncated extends Component<WzTextWithTooltipIfTruncatedProps> {
static defaultProps = {
elementStyle: {},
contentStyle: {},
};
state: {
withTooltip: boolean;
Expand Down Expand Up @@ -74,7 +74,7 @@ export default class WzTextWithTooltipIfTruncated extends Component<WzTextWithTo
<span
ref={this.contentReference}
className='wz-text-content'
style={this.props.elementStyle}
style={this.props.contentStyle}
>
{this.props.children || this.props.tooltip}
</span>
Expand Down

0 comments on commit 0ab2271

Please sign in to comment.