Skip to content

Commit fca06de

Browse files
Merge pull request #784 from zhuje/pf-fix-btn-group
NO-JIRA: fix radius of button groups
2 parents cebeb99 + 610ba55 commit fca06de

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

web/src/components/dashboards/perses/PersesWrapper.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,28 @@ const mapPatterflyThemeToMUI = (theme: 'light' | 'dark'): ThemeOptions => {
218218
},
219219
},
220220
},
221+
MuiButtonGroup: {
222+
styleOverrides: {
223+
root: {
224+
// Remove border-radius from button groups to prevent pill shape
225+
'& .MuiButton-root': {
226+
borderRadius: 'var(--pf-t--global--border--radius--tiny) !important',
227+
},
228+
},
229+
grouped: {
230+
borderRadius: 'var(--pf-t--global--border--radius--tiny) !important',
231+
},
232+
firstButton: {
233+
borderRadius: 'var(--pf-t--global--border--radius--tiny) !important',
234+
},
235+
lastButton: {
236+
borderRadius: 'var(--pf-t--global--border--radius--tiny) !important',
237+
},
238+
middleButton: {
239+
borderRadius: 'var(--pf-t--global--border--radius--tiny) !important',
240+
},
241+
},
242+
},
221243
MuiFormLabel: {
222244
styleOverrides: {
223245
root: {

0 commit comments

Comments
 (0)