[MM-55974] Theme is not used in notification selector box in user notification settings (#25689)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8f0d2b05ea
Коммит
287cbad2d5
@@ -872,7 +872,7 @@ class NotificationsTab extends React.PureComponent<Props, State> {
|
|||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
isClearable={false}
|
isClearable={false}
|
||||||
isMulti={true}
|
isMulti={true}
|
||||||
styles={customKeywordsWithNotificationStyles}
|
styles={customKeywordsSelectorStyles}
|
||||||
className='multiInput'
|
className='multiInput'
|
||||||
placeholder=''
|
placeholder=''
|
||||||
components={{
|
components={{
|
||||||
@@ -965,7 +965,7 @@ class NotificationsTab extends React.PureComponent<Props, State> {
|
|||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
isClearable={false}
|
isClearable={false}
|
||||||
isMulti={true}
|
isMulti={true}
|
||||||
styles={customKeywordsWithNotificationStyles}
|
styles={customKeywordsSelectorStyles}
|
||||||
className='multiInput'
|
className='multiInput'
|
||||||
placeholder=''
|
placeholder=''
|
||||||
components={{
|
components={{
|
||||||
@@ -1395,7 +1395,27 @@ class NotificationsTab extends React.PureComponent<Props, State> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const customKeywordsWithNotificationStyles: ReactSelectStyles = {
|
const customKeywordsSelectorStyles: ReactSelectStyles = {
|
||||||
|
control: ((baseStyles) => ({
|
||||||
|
...baseStyles,
|
||||||
|
backgroundColor: 'var(--center-channel-bg)',
|
||||||
|
border: '1px solid rgba(var(--center-channel-color-rgb), 0.16);',
|
||||||
|
':hover': {
|
||||||
|
borderColor: 'rgba(var(--center-channel-color-rgb), 0.48);',
|
||||||
|
},
|
||||||
|
})),
|
||||||
|
multiValue: ((baseStyles) => ({
|
||||||
|
...baseStyles,
|
||||||
|
background: 'rgba(var(--center-channel-color-rgb), 0.08)',
|
||||||
|
})),
|
||||||
|
multiValueLabel: ((baseStyles) => ({
|
||||||
|
...baseStyles,
|
||||||
|
color: 'var(--center-channel-color);',
|
||||||
|
})),
|
||||||
|
input: ((baseStyles) => ({
|
||||||
|
...baseStyles,
|
||||||
|
color: 'var(--center-channel-color)',
|
||||||
|
})),
|
||||||
indicatorSeparator: ((indicatorSeperatorStyles) => ({
|
indicatorSeparator: ((indicatorSeperatorStyles) => ({
|
||||||
...indicatorSeperatorStyles,
|
...indicatorSeperatorStyles,
|
||||||
display: 'none',
|
display: 'none',
|
||||||
@@ -1403,8 +1423,10 @@ const customKeywordsWithNotificationStyles: ReactSelectStyles = {
|
|||||||
multiValueRemove: ((multiValueRemoveStyles) => ({
|
multiValueRemove: ((multiValueRemoveStyles) => ({
|
||||||
...multiValueRemoveStyles,
|
...multiValueRemoveStyles,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
color: 'rgba(var(--center-channel-color-rgb),0.32);',
|
||||||
':hover': {
|
':hover': {
|
||||||
backgroundColor: 'rgba(var(--center-channel-color-rgb), 0.16)',
|
backgroundColor: 'rgba(var(--center-channel-color-rgb), 0.16)',
|
||||||
|
color: 'rgba(var(--center-channel-color-rgb), 0.56);',
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user