Skip to content

Commit 6735c8c

Browse files
Time interactive & RichTooltip - Increase dotted underline offset (HDS-4618) (#2745)
1 parent 9fc1aab commit 6735c8c

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.changeset/eight-fishes-sin.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@hashicorp/design-system-components": minor
3+
---
4+
5+
`Time` - Increase spacing above the dotted text decoration underline, that appears on the interactive variant, to 2px from the default.
6+
7+
`RichTooltip` - Increase spacing above the dotted text decoration underline to 2px from the default.

packages/components/src/styles/components/rich-tooltip.scss

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
// decoration style is specified separately to fix a bug in Safari causing it not to render
6969
text-decoration: underline;
7070
text-decoration-style: dotted;
71+
text-underline-offset: 2px;
7172
}
7273

7374
// icon

packages/components/src/styles/components/time.scss

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
// decoration style is specified separately to fix a bug in Safari causing it not to render
1818
text-decoration: underline;
1919
text-decoration-style: dotted;
20+
text-underline-offset: 2px;
2021
}

showcase/app/templates/components/time.hbs

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,24 @@
1212
<section>
1313
<Shw::Text::H2>Has tooltip</Shw::Text::H2>
1414

15-
<Shw::Flex @gap="2rem" as |SF|>
15+
<Shw::Flex @gap="2rem" {{style flexWrap="wrap"}} as |SF|>
1616
<SF.Item @label="With tooltip (default)">
1717
<Hds::Time @date="05 September 2018 14:48" />
1818
</SF.Item>
1919

2020
<SF.Item @label="Without tooltip">
2121
<Hds::Time @date="05 September 2018 14:48" @hasTooltip={{false}} />
2222
</SF.Item>
23+
24+
<SF.Item @label="Standard body font with tooltip" {{style width="100%"}}>
25+
<Hds::Text::Body @tag="p">
26+
<Hds::Time @date="05 September 2018 14:48" />
27+
</Hds::Text::Body>
28+
</SF.Item>
2329
</Shw::Flex>
2430

2531
<Shw::Text::H2>Display</Shw::Text::H2>
2632

27-
<p>Note: “examples” are temporary</p>
28-
2933
<Shw::Flex @gap="4rem 9rem" as |SF|>
3034
<SF.Item @label="Default with display unset">
3135
<Hds::Time @date="05 September 2018 14:07:32" @isOpen={{true}} />

0 commit comments

Comments
 (0)