MCPcopy Create free account
hub / github.com/angular/components / color

Method color

src/material/radio/radio.ts:525–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

523 */
524 @Input()
525 get color(): ThemePalette {
526 // As per M2 design specifications the selection control radio should use the accent color
527 // palette by default. https://m2.material.io/components/radio-buttons#specs
528 return (
529 this._color ||
530 (this.radioGroup && this.radioGroup.color) ||
531 (this._defaultOptions && this._defaultOptions.color) ||
532 'accent'
533 );
534 }
535 set color(newValue: ThemePalette) {
536 this._color = newValue;
537 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected