File tree Expand file tree Collapse file tree
packages/volto-button-block Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Fix className @iRohitSingh
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ const messages = defineMessages({
1515
1616const LegacyWrapper = ( props ) => (
1717 < div className = "button container" >
18- < div className = { cx ( 'align' , props . data ?. styles ?. [ 'align:noprefix' ] ) } >
19- { props . children }
20- </ div >
18+ < div className = { cx ( 'align' , props . data ?. inneralign ) } > { props . children } </ div >
2119 </ div >
2220) ;
2321
@@ -57,7 +55,10 @@ const View = (props) => {
5755 } else {
5856 // Accessibility: Render as <a> tag in view mode when link exists
5957 link = (
60- < UniversalLink href = { data . href [ 0 ] ?. [ '@id' ] } className = { cx ( 'button' ) } >
58+ < UniversalLink
59+ href = { data . href [ 0 ] ?. [ '@id' ] }
60+ className = { cx ( 'button' , data . align ) }
61+ >
6162 { data . title || intl . formatMessage ( messages . ButtonText ) }
6263 </ UniversalLink >
6364 ) ;
You can’t perform that action at this time.
0 commit comments