Skip to content

Commit 7209a63

Browse files
Muskan Guptaci-build
authored andcommitted
Updating style for captcha
1 parent c08cc5c commit 7209a63

File tree

2 files changed

+95
-19
lines changed
  • ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form

2 files changed

+95
-19
lines changed

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/hcaptcha/v1/hcaptcha/_cq_styleConfig/.content.xml

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,61 @@
1010
<captcha
1111
jcr:primaryType="nt:unstructured"
1212
jcr:title="Captcha"
13-
id="af_hcaptchawidget"
14-
cssSelector=".cmp-adaptiveform-hcaptcha label"
15-
longTitle="hCaptcha Widget"
13+
id="af_hcaptchacontainer"
14+
cssSelector=".cmp-adaptiveform-hcaptcha"
15+
longTitle="hCaptcha Widget and Text"
1616
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
17+
<items jcr:primaryType="nt:unstructured">
18+
<captchaLabel
19+
jcr:primaryType="nt:unstructured"
20+
jcr:title="Captcha Label"
21+
id="af_hcaptchawidgetlabel"
22+
cssSelector=".cmp-adaptiveform-hcaptcha__label"
23+
longTitle="hCaptcha Label"
24+
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
25+
<states jcr:primaryType="nt:unstructured">
26+
<focus
27+
jcr:primaryType="nt:unstructured"
28+
jcr:title="Focus"
29+
cssSelector=".cmp-adaptiveform-hcaptcha__label:focus"/>
30+
<hover
31+
jcr:primaryType="nt:unstructured"
32+
jcr:title="Hover"
33+
cssSelector=".cmp-adaptiveform-hcaptcha__label:hover"/>
34+
</states>
35+
</captchaLabel>
36+
<captchaWidget
37+
jcr:primaryType="nt:unstructured"
38+
jcr:title="Captcha Widget"
39+
id="af_hcaptchawidget"
40+
cssSelector=".cmp-adaptiveform-hcaptcha__widget"
41+
longTitle="hCaptcha Widget"
42+
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
43+
<states jcr:primaryType="nt:unstructured">
44+
<focus
45+
jcr:primaryType="nt:unstructured"
46+
jcr:title="Focus"
47+
cssSelector=".cmp-adaptiveform-hcaptcha__widget:focus"/>
48+
<hover
49+
jcr:primaryType="nt:unstructured"
50+
jcr:title="Hover"
51+
cssSelector=".cmp-adaptiveform-hcaptcha__widget:hover"/>
52+
</states>
53+
</captchaWidget>
54+
</items>
1755
<states jcr:primaryType="nt:unstructured">
1856
<focus
1957
jcr:primaryType="nt:unstructured"
2058
jcr:title="Focus"
21-
cssSelector=".cmp-adaptiveform-hcaptcha label:focus"/>
22-
<disabled
23-
jcr:primaryType="nt:unstructured"
24-
jcr:title="Disabled"
25-
cssSelector="\[data-cmp-enabled = 'false'].cmp-adaptiveform-hcaptcha label"/>
59+
cssSelector=".cmp-adaptiveform-hcaptcha:focus"/>
2660
<hover
2761
jcr:primaryType="nt:unstructured"
2862
jcr:title="Hover"
29-
cssSelector=".cmp-adaptiveform-hcaptcha label:hover"/>
63+
cssSelector=".cmp-adaptiveform-hcaptcha:hover"/>
64+
<disabled
65+
jcr:primaryType="nt:unstructured"
66+
jcr:title="Disabled"
67+
cssSelector="\[data-cmp-enabled = 'false'].cmp-adaptiveform-hcaptcha"/>
3068
</states>
3169
</captcha>
3270
</items>

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/recaptcha/v1/recaptcha/_cq_styleConfig/.content.xml

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,64 @@
1010
<captcha
1111
jcr:primaryType="nt:unstructured"
1212
jcr:title="Captcha"
13-
id="af_recaptchawidget"
14-
cssSelector=".cmp-adaptiveform-recaptcha label"
15-
longTitle="reCaptcha Widget"
13+
id="af_recaptchacontainer"
14+
cssSelector=".cmp-adaptiveform-recaptcha"
15+
longTitle="reCaptcha Widget and Text"
1616
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
17+
<items jcr:primaryType="nt:unstructured">
18+
<captchaLabel
19+
jcr:primaryType="nt:unstructured"
20+
jcr:title="Captcha Label"
21+
id="af_recaptchawidgetlabel"
22+
cssSelector=".cmp-adaptiveform-recaptcha__label"
23+
longTitle="reCaptcha Label"
24+
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
25+
<states jcr:primaryType="nt:unstructured">
26+
<focus
27+
jcr:primaryType="nt:unstructured"
28+
jcr:title="Focus"
29+
cssSelector=".cmp-adaptiveform-recaptcha__label:focus"/>
30+
<hover
31+
jcr:primaryType="nt:unstructured"
32+
jcr:title="Hover"
33+
cssSelector=".cmp-adaptiveform-recaptcha__label:hover"/>
34+
</states>
35+
</captchaLabel>
36+
<captchaWidget
37+
jcr:primaryType="nt:unstructured"
38+
jcr:title="Captcha Widget"
39+
id="af_recaptchawidget"
40+
cssSelector=".cmp-adaptiveform-recaptcha__widget"
41+
longTitle="reCaptcha Widget"
42+
propertySheet="/mnt/overlay/fd/af/components/stylePropertySheet/common">
43+
<states jcr:primaryType="nt:unstructured">
44+
<focus
45+
jcr:primaryType="nt:unstructured"
46+
jcr:title="Focus"
47+
cssSelector=".cmp-adaptiveform-recaptcha__widget:focus"/>
48+
<hover
49+
jcr:primaryType="nt:unstructured"
50+
jcr:title="Hover"
51+
cssSelector=".cmp-adaptiveform-recaptcha__widget:hover"/>
52+
</states>
53+
</captchaWidget>
54+
</items>
1755
<states jcr:primaryType="nt:unstructured">
1856
<focus
1957
jcr:primaryType="nt:unstructured"
2058
jcr:title="Focus"
21-
cssSelector=".cmp-adaptiveform-recaptcha label:focus"/>
22-
<disabled
23-
jcr:primaryType="nt:unstructured"
24-
jcr:title="Disabled"
25-
cssSelector="\[data-cmp-enabled = 'false'].cmp-adaptiveform-recaptcha label"/>
59+
cssSelector=".cmp-adaptiveform-recaptcha:focus"/>
2660
<hover
2761
jcr:primaryType="nt:unstructured"
2862
jcr:title="Hover"
29-
cssSelector=".cmp-adaptiveform-recaptcha label:hover"/>
63+
cssSelector=".cmp-adaptiveform-recaptcha:hover"/>
64+
<disabled
65+
jcr:primaryType="nt:unstructured"
66+
jcr:title="Disabled"
67+
cssSelector="\[data-cmp-enabled = 'false'].cmp-adaptiveform-recaptcha"/>
3068
</states>
3169
</captcha>
3270
</items>
3371
</field>
3472
</items>
35-
</jcr:root>
73+
</jcr:root>

0 commit comments

Comments
 (0)