Skip to content

Commit 93ccecb

Browse files
fix: FIT-138: Text on ASR Hypotheses Selection template not visible Dark mode (#7638)
1 parent 3f22d55 commit 93ccecb

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

docs/source/templates/asr_hypotheses.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ When you work with automatic speech transcribers, you are provided with several
1919
<View>
2020
<Audio name="audio" value="$audio"/>
2121
<Choices name="transcriptions" toName="audio" value="$transcriptions" selection="highlight"/>
22+
<Style>
23+
.lsf-choice__item {
24+
padding: var(--spacing-tighter) var(--spacing-tight);
25+
box-shadow: 0 2px 4px rgba(var(--color-neutral-shadow-raw) / calc(16% * var(--shadow-intensity))) ;
26+
background-color: var(--color-neutral-background);
27+
border-radius: var(--corner-radius-small);
28+
margin: 0 var(--spacing-tighter) var(--spacing-tighter) var(--spacing-tighter);
29+
line-height: 1.6rem;
30+
transition: all 150ms ease-out;
31+
}
32+
33+
.lsf-choice__item:hover {
34+
background-color: var(--color-primary-emphasis-subtle);
35+
}
36+
</Style>
2237
</View>
2338
```
2439

@@ -29,19 +44,14 @@ When you work with automatic speech transcribers, you are provided with several
2944
"data": {
3045
"audio": "https://htx-pub.s3.amazonaws.com/datasets/audio/f2btrop6.0.wav",
3146
"transcriptions": [{
32-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #FFFFFF",
3347
"value": "potrostith points out that if school based clinics were established parental permission would be required for students to receive each service offered"
3448
}, {
35-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F8F8F8",
3649
"value": "potrostith points out that if school-based clinics were established parental permission would be required for students to receive each service offered"
3750
}, {
38-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F5F5F5",
3951
"value": "purporting points out that if school based clinics were established parental permission would be required for students to receive each service offered"
4052
}, {
41-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F0F0F0",
4253
"value": "pork roasted points out that if school based clinics were establish parental permission would be required for students to receive each service offered"
4354
}, {
44-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #E8E8E8",
4555
"value": "purpose it points out that if school based clinics war establish parental permission would be required for students to receive each service offered"
4656
}]
4757
}

label_studio/annotation_templates/ranking-and-scoring/asr-hypotheses/config.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,33 @@ config: |
77
<View>
88
<Audio name="audio" value="$audio"/>
99
<Choices name="transcriptions" toName="audio" value="$transcriptions" selection="highlight"/>
10+
<Style>
11+
.lsf-choice__item {
12+
padding: var(--spacing-tighter) var(--spacing-tight);
13+
box-shadow: 0 2px 4px rgba(var(--color-neutral-shadow-raw) / calc(16% * var(--shadow-intensity))) ;
14+
background-color: var(--color-neutral-background);
15+
border-radius: var(--corner-radius-small);
16+
margin: 0 var(--spacing-tighter) var(--spacing-tighter) var(--spacing-tighter);
17+
line-height: 1.6rem;
18+
transition: all 150ms ease-out;
19+
}
20+
21+
.lsf-choice__item:hover {
22+
background-color: var(--color-primary-emphasis-subtle);
23+
}
24+
</Style>
1025
</View>
1126
<!-- { "data": {
1227
"audio": "https://htx-pub.s3.amazonaws.com/datasets/audio/f2btrop6.0.wav",
1328
"transcriptions": [{
14-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #FFFFFF",
1529
"value": "potrostith points out that if school based clinics were established parental permission would be required for students to receive each service offered"
1630
}, {
17-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F8F8F8",
1831
"value": "potrostith points out that if school-based clinics were established parental permission would be required for students to receive each service offered"
1932
}, {
20-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F5F5F5",
2133
"value": "purporting points out that if school based clinics were established parental permission would be required for students to receive each service offered"
2234
}, {
23-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #F0F0F0",
2435
"value": "pork roasted points out that if school based clinics were establish parental permission would be required for students to receive each service offered"
2536
}, {
26-
"style": "padding-left: 5px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; background-color: #E8E8E8",
2737
"value": "purpose it points out that if school based clinics war establish parental permission would be required for students to receive each service offered"
2838
}]
2939
}} -->

0 commit comments

Comments
 (0)