MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / buttonClass

Function buttonClass

core/src/components/alert/alert.tsx:901–909  ·  view source on GitHub ↗
(button: AlertButton)

Source from the content-addressed store, hash-verified

899};
900
901const buttonClass = (button: AlertButton): CssClassMap => {
902 return {
903 'alert-button': true,
904 'ion-focusable': true,
905 'ion-activatable': true,
906 [`alert-button-role-${button.role}`]: button.role !== undefined,
907 ...getClassMap(button.cssClass),
908 };
909};

Callers 1

renderAlertButtonsMethod · 0.70

Calls 1

getClassMapFunction · 0.90

Tested by

no test coverage detected