File tree 1 file changed +15
-1
lines changed
static/app/views/insights/common/views/spans/selectors
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 7
7
type SelectOption ,
8
8
type SelectProps ,
9
9
} from 'sentry/components/compactSelect' ;
10
+ import QuestionTooltip from 'sentry/components/questionTooltip' ;
10
11
import { t } from 'sentry/locale' ;
11
12
import { space } from 'sentry/styles/space' ;
12
13
import { trackAnalytics } from 'sentry/utils/analytics' ;
@@ -56,6 +57,8 @@ export default function SubregionSelector({size}: Props) {
56
57
return < Fragment /> ;
57
58
}
58
59
60
+ const tooltip = t ( 'These correspond to the subregions of the UN M49 standard.' ) ;
61
+
59
62
return (
60
63
< CompactSelect
61
64
size = { size }
@@ -73,7 +76,12 @@ export default function SubregionSelector({size}: Props) {
73
76
clearable
74
77
value = { value }
75
78
triggerLabel = { value . length === 0 ? t ( 'All' ) : undefined }
76
- menuTitle = { t ( 'Filter region' ) }
79
+ menuTitle = {
80
+ < MenuTitleContainer >
81
+ { t ( 'Filter region' ) }
82
+ < QuestionTooltip title = { tooltip } size = "xs" />
83
+ </ MenuTitleContainer >
84
+ }
77
85
options = { options }
78
86
onChange = { ( selectedOptions : SelectOption < string > [ ] ) => {
79
87
trackAnalytics ( 'insight.vital.select_browser_value' , {
@@ -98,3 +106,9 @@ export default function SubregionSelector({size}: Props) {
98
106
const StyledFeatureBadge = styled ( FeatureBadge ) `
99
107
margin-right: ${ space ( 1 ) } ;
100
108
` ;
109
+
110
+ const MenuTitleContainer = styled ( 'div' ) `
111
+ display: flex;
112
+ align-items: center;
113
+ gap: ${ space ( 0.5 ) } ;
114
+ ` ;
You can’t perform that action at this time.
0 commit comments