Skip to content

Commit

Permalink
Fix default setting and Block Width position of button block(#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
iRohitSingh committed Jul 17, 2023
1 parent f469f49 commit 646aeee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ msgstr "Hintergrundfarbe"
#: components/Blocks/Button/schema
# defaultMessage: Block Width
msgid "Block Width"
msgstr ""
msgstr "Block Breite"

#: components/Breadcrumbs/Breadcrumbs
# defaultMessage: Breadcrumbs
Expand Down
2 changes: 1 addition & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2023-07-11T14:53:29.388Z\n"
"POT-Creation-Date: 2023-07-17T11:14:01.375Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down
1 change: 1 addition & 0 deletions news/34.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix default setting and Block Width position of button block @iRohitSingh
3 changes: 2 additions & 1 deletion src/components/Blocks/Button/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const ButtonStylingSchema = ({ schema, formData, intl }) => {
schema.properties.styles.schema.properties.buttonAlign = {
widget: 'align',
title: intl.formatMessage(messages.BlockWidth),
actions: ['center', 'wide'],
actions: ['wide', 'center'],
default: 'wide',
};

schema.properties.inneralign.actions = ['left', 'center', 'right'];
Expand Down

0 comments on commit 646aeee

Please sign in to comment.