Skip to content

Commit 34485d9

Browse files
refactor(material-experimental/mdc-checkbox): remove usage of term blacklist (#20655)
Changes _attrBlacklist symbol to be _medFoundationIgnoredAttrs, which is more descriptive of what the symbol represents.
1 parent 8b6aab1 commit 34485d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material-experimental/mdc-checkbox/checkbox.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements AfterViewInit,
216216
* MDC uses animation events to determine when to update `aria-checked` which is unreliable.
217217
* Therefore we disable it and handle it ourselves.
218218
*/
219-
private _attrBlacklist = new Set(['aria-checked']);
219+
private _mdcFoundationIgnoredAttrs = new Set(['aria-checked']);
220220

221221
/** The `MDCCheckboxAdapter` instance for this checkbox. */
222222
private _checkboxAdapter: MDCCheckboxAdapter = {
@@ -229,13 +229,13 @@ export class MatCheckbox extends _MatCheckboxMixinBase implements AfterViewInit,
229229
isIndeterminate: () => this.indeterminate,
230230
removeNativeControlAttr:
231231
(attr) => {
232-
if (!this._attrBlacklist.has(attr)) {
232+
if (!this._mdcFoundationIgnoredAttrs.has(attr)) {
233233
this._nativeCheckbox.nativeElement.removeAttribute(attr);
234234
}
235235
},
236236
setNativeControlAttr:
237237
(attr, value) => {
238-
if (!this._attrBlacklist.has(attr)) {
238+
if (!this._mdcFoundationIgnoredAttrs.has(attr)) {
239239
this._nativeCheckbox.nativeElement.setAttribute(attr, value);
240240
}
241241
},

0 commit comments

Comments
 (0)