Skip to content

Commit d022fe7

Browse files
fix(Form): fix tab order (#665)
Closes #645
1 parent d3e5f20 commit d022fe7

File tree

4 files changed

+236
-108
lines changed

4 files changed

+236
-108
lines changed

packages/main/src/components/Form/Form.jss.ts

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,52 @@ const styles = {
88
columnGap: '0.5rem',
99
gridTemplateColumns: `repeat(12, 1fr)`,
1010
'--ui5wcr_form_full_span': 'span 12',
11-
'--ui5wcr_form_label_text_align': 'end'
11+
'--ui5wcr_form_label_text_align': 'end',
12+
'&[data-columns="1"]': {},
13+
'&[data-columns="2"]': {
14+
gridTemplateColumns: `repeat(24, 1fr)`,
15+
'--ui5wcr_form_full_span': 'span 24'
16+
},
17+
'&[data-columns="3"]': {
18+
gridTemplateColumns: `repeat(36, 1fr)`,
19+
'--ui5wcr_form_full_span': 'span 36'
20+
},
21+
'&[data-columns="4"]': {
22+
gridTemplateColumns: `repeat(48, 1fr)`,
23+
'--ui5wcr_form_full_span': 'span 48'
24+
},
25+
'&[data-columns="5"]': {
26+
gridTemplateColumns: `repeat(60, 1fr)`,
27+
'--ui5wcr_form_full_span': 'span 60'
28+
},
29+
'&[data-columns="6"]': {
30+
gridTemplateColumns: `repeat(72, 1fr)`,
31+
'--ui5wcr_form_full_span': 'span 72'
32+
},
33+
'&[data-columns="7"]': {
34+
gridTemplateColumns: `repeat(84, 1fr)`,
35+
'--ui5wcr_form_full_span': 'span 84'
36+
},
37+
'&[data-columns="8"]': {
38+
gridTemplateColumns: `repeat(96, 1fr)`,
39+
'--ui5wcr_form_full_span': 'span 96'
40+
},
41+
'&[data-columns="9"]': {
42+
gridTemplateColumns: `repeat(108, 1fr)`,
43+
'--ui5wcr_form_full_span': 'span 108'
44+
},
45+
'&[data-columns="10"]': {
46+
gridTemplateColumns: `repeat(120, 1fr)`,
47+
'--ui5wcr_form_full_span': 'span 120'
48+
},
49+
'&[data-columns="11"]': {
50+
gridTemplateColumns: `repeat(132, 1fr)`,
51+
'--ui5wcr_form_full_span': 'span 132'
52+
},
53+
'&[data-columns="12"]': {
54+
gridTemplateColumns: `repeat(144, 1fr)`,
55+
'--ui5wcr_form_full_span': 'span 144'
56+
}
1257
},
1358
formTitle: {
1459
borderBottom: `1px solid ${ThemingParameters.sapGroup_TitleBorderColor}`,

0 commit comments

Comments
 (0)