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
+1 -1
View File
@@ -22,7 +22,7 @@ const DynamicDate: FunctionComponent<DynamicDateProps> = ({
const date = new Date(value); const date = new Date(value);
return ( return (
<button onClick={toggleFormat}> <button onClick={toggleFormat}>
<span title={date.toISOString()}> <span className="dashed" title={date.toISOString()}>
{showAbsolute {showAbsolute
? format(date, absoluteFormat ?? "LLL do, y HH:mm:ss xxx") ? format(date, absoluteFormat ?? "LLL do, y HH:mm:ss xxx")
: <TimeAgo date={date} />} : <TimeAgo date={date} />}
+1 -1
View File
@@ -8,7 +8,7 @@ const PropertyListItem: FunctionComponent<{
}> = ({ title, children }) => { }> = ({ title, children }) => {
return ( return (
<li> <li>
<span title={title}>{children}</span> <span className="dashed" title={title}>{children}</span>
</li> </li>
); );
}; };
+1 -1
View File
@@ -10,7 +10,7 @@ dd {
margin: 0.5em 0 1em 2em; margin: 0.5em 0 1em 2em;
} }
[title]:not(.no-title) { .dashed {
border-bottom: 1px dashed silver; border-bottom: 1px dashed silver;
} }