fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396)
Closes #26174 PR Close #26396
This commit is contained in:
committed by
Misko Hevery
parent
ecd473bbce
commit
fc6dad40ac
@@ -85,14 +85,14 @@ export class CodeComponent implements OnChanges {
|
||||
/** Region of the source of the code being displayed. */
|
||||
@Input() region: string;
|
||||
|
||||
/** Optional title to be displayed above the code. */
|
||||
/** Optional header to be displayed above the code. */
|
||||
@Input()
|
||||
set title(title: string) {
|
||||
this._title = title;
|
||||
this.ariaLabel = this.title ? `Copy code snippet from ${this.title}` : '';
|
||||
set header(header: string) {
|
||||
this._header = header;
|
||||
this.ariaLabel = this.header ? `Copy code snippet from ${this.header}` : '';
|
||||
}
|
||||
get title(): string { return this._title; }
|
||||
private _title: string;
|
||||
get header(): string { return this._header; }
|
||||
private _header: string;
|
||||
|
||||
@Output() codeFormatted = new EventEmitter<void>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user