Use .dashed class instead of global attribute selector for title indication

This commit is contained in:
2024-05-10 01:47:09 -05:00
parent 5390c697e2
commit d819920f8a
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ const DynamicDate: FunctionComponent<DynamicDateProps> = ({
const date = new Date(value);
return (
<button onClick={toggleFormat}>
<span title={date.toISOString()}>
<span className="dashed" title={date.toISOString()}>
{showAbsolute
? format(date, absoluteFormat ?? "LLL do, y HH:mm:ss xxx")
: <TimeAgo date={date} />}

View File

@@ -8,7 +8,7 @@ const PropertyListItem: FunctionComponent<{
}> = ({ title, children }) => {
return (
<li>
<span title={title}>{children}</span>
<span className="dashed" title={title}>{children}</span>
</li>
);
};

View File

@@ -10,7 +10,7 @@ dd {
margin: 0.5em 0 1em 2em;
}
[title]:not(.no-title) {
.dashed {
border-bottom: 1px dashed silver;
}