Transcript rows
A transcript row is a call-log line that combines a timestamp, optional play control, speaker identity, and transcribed text. Styles ship in @ringover/styles molecules — there is no Web Component or Ro* Vue wrapper.
Examples
Section titled “Examples”Basic row
Section titled “Basic row”Use .ro-transcription-row as the interactive root. The first column is .ro-transcription-row-duration (timestamp + action). Content lives in .ro-transcription-row-content.
<div class="ro-transcription-row" tabindex="0"> <div class="ro-transcription-row-duration"> <div>04:50</div> <div class="ro-transcription-row-action"> <div class="ro-btn ro-variant-ghost ro-size-sm ro-shape-icon"> <i class="ro-icon ro-icon-play-full" aria-hidden="true"></i> <i class="ro-icon ro-icon-pause" aria-hidden="true"></i></div> </div> </div> <div class="ro-transcription-row-content"> <div class="ro-transcription-row-contact"> <div class="ro-avatar ro-size-2xs"> <img class="ro-avatar_img" alt="" src="https://i.pravatar.cc/150?img=47" /> </div> <span class="ro-u-text-ellipsis">Maya Johnson</span> </div> <p class="ro-transcription-row-text">I appreciate the innovation, yet I'm curious about your target market.</p> </div></div>I appreciate the innovation, yet I'm curious about your target market.
The play control stays hidden until hover, focus-within, or an active now-playing row. Include both .ro-icon-play-full and .ro-icon-pause; CSS shows the correct icon for .now-playing.
Active and now playing
Section titled “Active and now playing”| Class | Meaning |
|---|---|
.active | Playhead / selected line (accent background). |
.now-playing | Audio is playing; pause icon stays visible when combined with .active. |
<div class="ro-transcription-row active now-playing" tabindex="0"><!-- same inner structure as basic row --></div>Same-speaker continuation
Section titled “Same-speaker continuation”Add .ro-transcription-row-continuation on follow-up lines from the same speaker. The contact block is hidden; only the new timestamp column is shown.
<div class="ro-transcription-row" tabindex="0">…</div><div class="ro-transcription-row ro-transcription-row-continuation"><div class="ro-transcription-row-duration"> <div>04:58</div> <div class="ro-transcription-row-action">…</div></div><div class="ro-transcription-row-content"> <p class="ro-transcription-row-text">We sell to mid-market teams that already record their calls.</p></div></div>I appreciate the innovation, yet I'm curious about your target market.
We sell to mid-market teams that already record their calls.
No audio
Section titled “No audio”.ro-no-audio marks read-only rows (no recording). Hover, focus, and active backgrounds stay off and the play action is hidden.
<div class="ro-transcription-row ro-no-audio">…</div>I appreciate the innovation, yet I'm curious about your target market.
Spoken highlight
Section titled “Spoken highlight”While audio plays, register a Highlight named ro-transcription-spoken on the spoken text range. Styles map it with ::highlight(ro-transcription-spoken) on .ro-transcription-row.
const range = new Range();// set range on the transcript text node…CSS.highlights.set('ro-transcription-spoken', new Highlight(range));Clear the highlight when playback stops: CSS.highlights.delete('ro-transcription-spoken').
Properties
Section titled “Properties”| Class / attribute | Description |
|---|---|
.ro-transcription-row | Root row; clickable unless .ro-no-audio. |
.ro-transcription-row-duration | Timestamp column; hosts .ro-transcription-row-action. |
.ro-transcription-row-action | Ghost icon play/pause control (first duration column only). |
.ro-transcription-row-content | Speaker + transcript column. |
.ro-transcription-row-contact | Avatar and name (Avatars). |
.ro-transcription-row-text | Transcript body; first letter is capitalized via CSS. |
.active | Selected / playhead line. |
.now-playing | Playback in progress; swaps play/pause icon visibility. |
.ro-transcription-row-continuation | Same-speaker follow-up; hides contact. |
.ro-no-audio | Read-only row without playback. |
CSS custom properties
Section titled “CSS custom properties”| Variable | Default | Description |
|---|---|---|
--ro-transcription-row-bg | transparent | Row background. |
--ro-transcription-row-bg-hover | var(--ro-colors-component-regular) | Hover / focus-within background. |
--ro-transcription-row-bg-active | var(--ro-colors-accent-light) | .active background. |
--ro-transcription-row-duration-width | var(--ro-size-9) | Timestamp column width. |
--ro-transcription-row-playing-color | var(--ro-colors-accent-highlight) | Spoken highlight text color. |
Changelog
Recent updates in @ringover/styles. See the full
package changelog
.
-
- Call-log transcription rows with hover, active playhead, now-playing, same-speaker continuation, and read-only no-audio states.
- Spoken passage styling via the `ro-transcription-spoken` CSS custom highlight.