File tree 3 files changed +15
-11
lines changed 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ import { css } from '@emotion/react' ;
1
2
import styled from '@emotion/styled' ;
2
3
3
4
import type { ButtonProps } from 'sentry/components/core/button' ;
4
- import { Button , ButtonLabel } from 'sentry/components/core/button' ;
5
+ import { Button } from 'sentry/components/core/button' ;
5
6
import { IconChevron } from 'sentry/icons' ;
6
7
import { space } from 'sentry/styles/space' ;
7
8
@@ -78,8 +79,16 @@ const StyledButton = styled(Button)<StyledButtonProps>`
78
79
max-width: 100%;
79
80
z-index: 2;
80
81
81
- ${ p => ( p . isOpen || p . disabled ) && 'box-shadow: none;' }
82
- ${ p => p . hasPrefix && `${ ButtonLabel } {font-weight: ${ p . theme . fontWeightNormal } ;}` }
82
+ ${ p =>
83
+ ( p . isOpen || p . disabled ) &&
84
+ css `
85
+ box-shadow : none;
86
+ ` }
87
+ ${ p =>
88
+ p . hasPrefix &&
89
+ css `
90
+ font-weight : ${ p . theme . fontWeightNormal } ;
91
+ ` }
83
92
` ;
84
93
85
94
const LabelText = styled ( 'span' ) `
Original file line number Diff line number Diff line change 1
1
import styled from '@emotion/styled' ;
2
2
3
- import { Button , ButtonLabel } from 'sentry/components/core/button' ;
3
+ import { Button } from 'sentry/components/core/button' ;
4
4
import EmptyMessage from 'sentry/components/emptyMessage' ;
5
5
import Panel from 'sentry/components/panels/panel' ;
6
6
import { IconBroadcast , IconBusiness } from 'sentry/icons' ;
@@ -71,9 +71,6 @@ const ButtonBar = styled('div')`
71
71
justify-content: center;
72
72
align-items: center;
73
73
margin: -${ space ( 0.75 ) } ;
74
- ${ ButtonLabel } {
75
- white-space: nowrap;
76
- }
77
74
` ;
78
75
79
76
const StyledButton = styled ( Button ) `
Original file line number Diff line number Diff line change 1
1
import styled from '@emotion/styled' ;
2
2
3
- import { Button , ButtonLabel } from 'sentry/components/core/button' ;
3
+ import { Button } from 'sentry/components/core/button' ;
4
4
import { ButtonBar } from 'sentry/components/core/button/buttonBar' ;
5
5
import EmptyMessage from 'sentry/components/emptyMessage' ;
6
6
import { IconBusiness , IconLock } from 'sentry/icons' ;
@@ -78,9 +78,7 @@ const Content = styled(EmptyMessage)`
78
78
79
79
const StyledButton = styled ( Button ) `
80
80
margin: ${ space ( 0.75 ) } ;
81
- ${ ButtonLabel } {
82
- white-space: nowrap;
83
- }
81
+ white-space: nowrap;
84
82
` ;
85
83
86
84
const StyledLearnMoreButton = styled ( LearnMoreButton ) `
You can’t perform that action at this time.
0 commit comments