Skip to content

Commit

Permalink
update button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Jun 5, 2020
1 parent 72723f3 commit bf8228e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
3 changes: 2 additions & 1 deletion packages/main/src/components/MessageBox/MessageBox.jss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const style = {
margin: '0 0.25rem'
},
'& > ui5-button': {
display: 'flex'
display: 'flex',
minWidth: '4rem'
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ exports[`MessageBox Confirm - Cancel 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
<ui5-button
data-action="Cancel"
design="Transparent"
style="min-width: 4rem;"
>
Cancel
</ui5-button>
Expand Down Expand Up @@ -70,14 +68,12 @@ exports[`MessageBox Confirm - OK 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
<ui5-button
data-action="Cancel"
design="Transparent"
style="min-width: 4rem;"
>
Cancel
</ui5-button>
Expand Down Expand Up @@ -115,7 +111,6 @@ exports[`MessageBox Error 1`] = `
<ui5-button
data-action="Close"
design="Emphasized"
style="min-width: 4rem;"
>
Close
</ui5-button>
Expand Down Expand Up @@ -153,7 +148,6 @@ exports[`MessageBox Information 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
Expand Down Expand Up @@ -191,14 +185,12 @@ exports[`MessageBox No Title 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
<ui5-button
data-action="Cancel"
design="Transparent"
style="min-width: 4rem;"
>
Cancel
</ui5-button>
Expand Down Expand Up @@ -234,7 +226,6 @@ exports[`MessageBox Not open 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
Expand Down Expand Up @@ -272,14 +263,12 @@ exports[`MessageBox Show 1`] = `
<ui5-button
data-action="Yes"
design="Emphasized"
style="min-width: 4rem;"
>
Yes
</ui5-button>
<ui5-button
data-action="No"
design="Transparent"
style="min-width: 4rem;"
>
No
</ui5-button>
Expand Down Expand Up @@ -317,7 +306,6 @@ exports[`MessageBox Success 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
Expand Down Expand Up @@ -355,7 +343,6 @@ exports[`MessageBox Success w/ custom title 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
Expand Down Expand Up @@ -393,7 +380,6 @@ exports[`MessageBox Warning 1`] = `
<ui5-button
data-action="OK"
design="Emphasized"
style="min-width: 4rem;"
>
OK
</ui5-button>
Expand Down
3 changes: 0 additions & 3 deletions packages/main/src/components/MessageBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ const MessageBox: FC<MessageBoxPropTypes> = forwardRef((props: MessageBoxPropTyp
{actionsToRender.map((action, index) => {
return (
<Button
style={{
minWidth: '4rem'
}}
key={action}
design={index === 0 ? ButtonDesign.Emphasized : ButtonDesign.Transparent}
onClick={handleOnClose}
Expand Down

0 comments on commit bf8228e

Please sign in to comment.