Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Add Custom CSS Classes To AEM Touch UI Dialogs? (AEM 6.4)

Avatar

Level 1

Hello Adobe Community,

I have a checkbox dialog for one of my components, and I would like to add a custom CSS class to the dialog, but through the XML of the dialog itself.

Is this possible?

Basically I'm aiming for something like this:

```

<questionCheckbox

  jcr:primaryType="nt:unstructured"

  sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"

  fieldDescription="Check this box for a custom option"

  name="./questioncheckbox"

  text="Use Old Navigation?"

  cssClass="customCheckbox"

  value="true"

  />

```

Any guidance would be appreciated.

Thanks,

Alex

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

use granite:class property instead of cssClass

Common Attributes — Granite UI 1.0 documentation