Settings and shapes
Press any surface — the matrix is live. Keyboard activation is always centred, since Enter and Space carry no coordinates; rippleCentred makes the pointer behave the same way. rippleDisabled detaches the listeners and drops the host class rather than ignoring events, so a switched-off ripple costs nothing. A host carrying disabled or aria-disabled="true" does not answer a press it will not act on. Under prefers-reduced-motion: reduce nothing ripples at all — suppressed outright rather than shortened.
gogRipple
rippleCentred
rippleDisabled
disabled
aria-disabled
@for (setting of settings; track setting.name) {
<div>
<span>{{ setting.name }}</span>
@for (radius of radii; track radius) {
<button
type="button"
gogRipple
[rippleCentred]="setting.centred"
[rippleDisabled]="setting.rippleDisabled"
[disabled]="setting.disabled"
[attr.aria-disabled]="setting.ariaDisabled ? 'true' : null"
style="
padding: 12px 20px;
border: 1px solid var(--gog-border-color);
background: var(--gog-surface-color);
color: inherit;
font: inherit;
"
[style.border-radius]="radius"
[style.opacity]="setting.disabled || setting.ariaDisabled ? 0.55 : null"
>
Press
</button>
}
</div>
}