Skip to content

Commit 2755093

Browse files
committed
Merge branch 'padms/3743' into staging
2 parents d81cd4d + 8bd2536 commit 2755093

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

studio/schemas/objects/textBlock.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
name: 'actions',
4545
options: {
4646
collapsible: true,
47-
collapsed: true,
47+
collapsed: false,
4848
},
4949
},
5050
{
@@ -138,6 +138,8 @@ export default {
138138
description:
139139
'You can also display links/downloads as two columns if there are a lot of links. Ensure that titles are short enough to do this.',
140140
},
141+
/* Will introduce this new field while also doing a proper clean up of the deprecated fields.
142+
The usage on the deprecated fields are huge.
141143
defineField({
142144
name: 'backgroundType',
143145
title: 'Select background type',
@@ -173,14 +175,26 @@ export default {
173175
title: 'Background image',
174176
hidden: ({ parent }: { parent?: { backgroundType?: string } }) =>
175177
parent?.backgroundType !== 'backgroundImage',
176-
},
178+
},*/
177179
{
178180
name: 'designOptions',
179181
type: 'backgroundOptions',
180-
deprecated: true,
182+
//deprecated: true,
181183
readOnly: ({ parent }: { parent: TextBlock }) => parent?.useBrandTheme,
182-
hidden: ({ value }: { value: any }) => !value,
184+
//hidden: ({ value }: { value: any }) => !value,
183185
},
186+
defineField({
187+
deprecated: {
188+
reason:
189+
'This field was used in a legacy system and is no longer to be used.',
190+
},
191+
title: 'Background (Deprecated)',
192+
description: 'Default is white',
193+
name: 'background',
194+
readOnly: true,
195+
type: 'colorlist',
196+
hidden: ({ value }: { value: any }) => !value,
197+
}),
184198
].filter(e => e),
185199
preview: {
186200
select: {

0 commit comments

Comments
 (0)