Skip to content

Commit c2352c4

Browse files
committed
fix(chat): speech to text lint errors
1 parent 7fb8337 commit c2352c4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/components/chat/chat-input.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,11 @@ export default class IgcChatInputComponent extends LitElement {
372372
<igc-textarea
373373
part="text-input"
374374
aria-label="Chat text input"
375-
placeholder=${this.isRecording
376-
? ifDefined(this._state.options?.speakPlaceholder)
377-
: ifDefined(this._state.options?.inputPlaceholder)}
375+
placeholder=${ifDefined(
376+
this.isRecording
377+
? this._state.options?.speakPlaceholder
378+
: this._state.options?.inputPlaceholder
379+
)}
378380
resize="auto"
379381
rows="1"
380382
.value=${this._userInputState?.inputValue}

src/components/chat/themes/input.base.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,20 @@ label[part="speech-to-text"] igc-icon-button[disabled] {
9999
position: absolute;
100100
top: 0;
101101
left: 0;
102-
width: 100%;
102+
width: 100%;
103103
height: 100%;
104-
transform: rotate(-90deg); /* start progress from top */
104+
transform: rotate(-90deg);
105105
pointer-events: none;
106106
}
107107

108108
.ring-bg {
109109
fill: none;
110110
stroke: transparent;
111-
//stroke-width: 3;
112111
}
113112

114113
.ring-progress {
115114
fill: none;
116-
stroke: rgba(0,0,0,0.5); /* match your disabled color */
115+
stroke: rgba(0,0,0,0.5);
117116
stroke-width: 3;
118117
stroke-dasharray: 100;
119118
stroke-dashoffset: 100;

0 commit comments

Comments
 (0)