From 2e16941e9eecd11f8fd5aba86509eb48054be1ad Mon Sep 17 00:00:00 2001 From: Rene Pfeuffer Date: Fri, 21 Feb 2025 09:51:14 +0100 Subject: [PATCH] Fix display of titles in tags Squash commits of branch bugfix/title_in_tag: - Fix display of titles in tags - Fix storyshots --- gradle/changelog/title_in_tag.yaml | 2 ++ scm-ui/ui-components/src/Tag.tsx | 1 + scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap | 1 + 3 files changed, 4 insertions(+) create mode 100644 gradle/changelog/title_in_tag.yaml diff --git a/gradle/changelog/title_in_tag.yaml b/gradle/changelog/title_in_tag.yaml new file mode 100644 index 0000000000..f9e7048ada --- /dev/null +++ b/gradle/changelog/title_in_tag.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Title in tags (for example for "done" tags in review plugin) diff --git a/scm-ui/ui-components/src/Tag.tsx b/scm-ui/ui-components/src/Tag.tsx index 43b7808e41..ee925c92c7 100644 --- a/scm-ui/ui-components/src/Tag.tsx +++ b/scm-ui/ui-components/src/Tag.tsx @@ -78,6 +78,7 @@ const Tag: FC = ({ }, size === "small" && smallClassNames )} + title={title} > {showIcon} {label} diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index aed5f205e5..9bc31d3554 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -85187,6 +85187,7 @@ exports[`Storyshots Tag With title 1`] = ` > hover me