Skip to content

Commit 91dfa3e

Browse files
committed
refactor example using template literal
1 parent 602ff65 commit 91dfa3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/dnb-design-system-portal/src/docs/uilib/components/tooltip

packages/dnb-design-system-portal/src/docs/uilib/components/tooltip/Examples.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const TooltipExampleButtonLongText = () => (
6565
data-visual-test="tooltip-hover-button-long-text"
6666
scope={{ swissJoke }}
6767
>
68-
<Button tooltip={swissJoke + ' ' + swissJoke} text="Long Tooltip" />
68+
<Button tooltip={`${swissJoke} ${swissJoke}`} text="Long Tooltip" />
6969
</ComponentBox>
7070
)
7171

0 commit comments

Comments
 (0)