-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(issue-stream): Update priority badge/selector (#78726)
closes #77819 Creates the new design for the issue priority badge under the `variant` prop within the `<GroupPriorityBadge/>` component. This design is currently under a feature flag, so it is not visible. Demo with flag manually set to true: https://github.com/user-attachments/assets/d6f388a7-7c21-498c-afd2-7fc2f6faef23
- Loading branch information
1 parent
a21d310
commit 1d8bddb
Showing
3 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {forwardRef} from 'react'; | ||
import {useTheme} from '@emotion/react'; | ||
|
||
import {SvgIcon, type SVGIconProps} from 'sentry/icons/svgIcon'; | ||
|
||
interface Props extends SVGIconProps { | ||
bars?: 0 | 1 | 2 | 3; | ||
} | ||
const IconCellSignal = forwardRef<SVGSVGElement, Props>(({bars = 3, ...props}, ref) => { | ||
const theme = useTheme(); | ||
const firstBarColor = bars > 0 ? theme.gray300 : theme.gray100; | ||
const secondBarColor = bars > 1 ? theme.gray300 : theme.gray100; | ||
const thirdBarColor = bars > 2 ? theme.gray300 : theme.gray100; | ||
|
||
return ( | ||
<SvgIcon {...props} ref={ref}> | ||
<rect x="0" y="10" width="4" height="5" fill={firstBarColor} rx="1" /> | ||
<rect x="6.2" y="5" width="4" height="10" fill={secondBarColor} rx="1" /> | ||
<rect x="12.4" y="0" width="4" height="15" fill={thirdBarColor} rx="1" /> | ||
</SvgIcon> | ||
); | ||
}); | ||
|
||
IconCellSignal.displayName = 'IconCellSignal'; | ||
|
||
export {IconCellSignal}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters