Skip to content

Commit 6f2bb3e

Browse files
author
dgurjar
committed
[RTL] Add auto direction prop on text-area component
1 parent 1da1a32 commit 6f2bb3e

File tree

4 files changed

+68
-2
lines changed
  • it/content/src/main/content/jcr_root/content
  • ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput

4 files changed

+68
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0"
3+
jcr:primaryType="dam:Asset">
4+
<jcr:content
5+
cq:conf="\0"
6+
jcr:lastModified="{Date}2024-06-06T15:28:49.467+05:30"
7+
jcr:primaryType="dam:AssetContent"
8+
sling:resourceType="fd/fm/af/render"
9+
guide="1"
10+
type="guide">
11+
<metadata
12+
fd:version="2.1"
13+
jcr:language="en"
14+
jcr:primaryType="nt:unstructured"
15+
xmp:CreatorTool="AEM Forms AF Wizard"
16+
allowedRenderFormat="HTML"
17+
author="admin"
18+
dorType="none"
19+
formmodel="none"
20+
themeRef="/libs/fd/af/themes/canvas"
21+
title="text-area-dir"/>
22+
</jcr:content>
23+
</jcr:root>

it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@
215215
</textinput_1477533951>
216216
</guideContainer>
217217
</jcr:content>
218-
</jcr:root>
218+
</jcr:root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0"
3+
jcr:primaryType="cq:Page">
4+
<jcr:content
5+
cq:deviceGroups="[/etc/mobile/groups/responsive]"
6+
cq:lastModified="{Date}2024-06-06T15:28:49.469+05:30"
7+
cq:lastModifiedBy="admin"
8+
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2"
9+
jcr:language="en"
10+
jcr:primaryType="cq:PageContent"
11+
jcr:title="text-area-dir"
12+
sling:configRef="/conf/forms/core-components-it/samples/textinput/text-area-dir/"
13+
sling:resourceType="forms-components-examples/components/page">
14+
<guideContainer
15+
fd:version="2.1"
16+
jcr:primaryType="nt:unstructured"
17+
sling:resourceType="forms-components-examples/components/form/container"
18+
dorType="none"
19+
fieldType="form"
20+
thankYouOption="page"
21+
themeRef="/libs/fd/af/themes/canvas"
22+
title="text-area-dir">
23+
<textinput
24+
jcr:created="{Date}2024-06-06T15:28:43.776+05:30"
25+
jcr:createdBy="admin"
26+
jcr:lastModified="{Date}2024-06-06T15:28:49.446+05:30"
27+
jcr:lastModifiedBy="admin"
28+
jcr:primaryType="nt:unstructured"
29+
jcr:title="Text Input"
30+
sling:resourceType="forms-components-examples/components/form/textinput"
31+
enabled="{Boolean}true"
32+
fieldType="text-input"
33+
hideTitle="false"
34+
multiLine="true"
35+
name="textinput1717667924141"
36+
readOnly="{Boolean}false"
37+
textIsRich="[true,true,true]"
38+
unboundFormElement="{Boolean}false"
39+
visible="{Boolean}true"/>
40+
</guideContainer>
41+
</jcr:content>
42+
</jcr:root>

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
placeholder="${text.placeHolder}"
4949
autocomplete="${text.autoComplete}"
5050
minlength="${text.minLength}"
51-
maxlength="${text.maxLength}"></textarea>
51+
maxlength="${text.maxLength}"
52+
dir="auto"></textarea>
5253
<input data-sly-test="${!useTextarea}"
5354
title="${text.tooltipVisible ? '' : text.tooltipText}"
5455
class="cmp-adaptiveform-textinput__widget"

0 commit comments

Comments
 (0)