File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,10 @@ export class TextareaLabelComponent implements AfterViewInit {
144144
145145 @HostBinding ( "class.cds--form-item" ) labelClass = true ;
146146
147+ @HostBinding ( "class.cds--text-area__wrapper--readonly" ) get isReadonly ( ) {
148+ return this . wrapper ?. nativeElement . querySelector ( "textarea" ) ?. readOnly ?? false ;
149+ }
150+
147151 /**
148152 * Creates an instance of Label.
149153 */
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const Template = (args) => ({
3232 [theme]="theme"
3333 [rows]="rows"
3434 [cols]="cols"
35+ [readonly]="readonly"
3536 aria-label="textarea"></textarea>
3637 </cds-textarea-label>
3738 `
@@ -49,7 +50,8 @@ Basic.args = {
4950 cols : 50 ,
5051 rows : 4 ,
5152 autocomplete : "on" ,
52- theme : "dark"
53+ theme : "dark" ,
54+ readonly : false
5355} ;
5456Basic . argTypes = {
5557 autocomplete : {
You can’t perform that action at this time.
0 commit comments