Mention
A person, a team or a thing named inside a sentence.
On this page
A mention names a person, a team or a thing inside a sentence: @Ada, #design, an issue's number. It keeps the sentence's own type and ink, at the control weight, on a faint tint of that ink. It has no contour, which tells it apart from inline code.
Mention
<div class="flex flex-col max-w(440) mx-auto"> <div class="message"> <div class="message-bubble"> <a class="mention" href="#">@Ada Lovelace</a>the build for <a class="mention" href="#">#412</a>is green. Can <a class="mention mention-self" href="#">@you</a>review it before <span class="mention">Friday</span>?</div> </div> <div class="message message-sent"> <div class="message-bubble">On it. I will loop in <a class="mention" href="#">@design</a>for the corners.</div> </div></div>#Link or text
On an <a> a mention goes somewhere, a profile or an issue, and its tint deepens under the pointer. On a <span> it is only a name set apart, such as a date a parser recognized. The stylesheet tells the two apart by :any-link, so nothing that cannot be followed looks as if it could.
#The reader's own name
mention-self marks the reader: a firmer tint and a hairline, so their own name is found at a glance in a long thread. It stays in ink like every other mention; say "you" or the name in the text, since the difference in tone is slight on purpose.
#In text
A mention does not break across lines. Its tint and its hairline are mixed from the current color, so it reads wherever the sentence does: inside a sent message, which is ink, the name is the bubble's own light text on a light tint.
#Accessibility
- The sign is part of the text. Write
@or#in the element, so the mention reads the same when copied or spoken. - A mention that opens a profile is a link and needs no extra role.
#Classes
| Class | Description |
|---|---|
mention | The name: the sentence's own type and ink at the control weight, on a faint tint of that ink. It does not break across lines, and as a link its tint deepens under the pointer |
mention-self | The reader's own name: a firmer tint and a hairline. With mention |
#Related
- CitationA small numbered mark in a sentence that points at its source.
- CodeLiteral text in the mono face, inline or as a block.
- MessageOne turn of a conversation, as a bubble that points at its author.