Skip to content

Commit

Permalink
mattermost-community#66 in the Dark theme The User is not able to see…
Browse files Browse the repository at this point in the history
… the Data/Text
  • Loading branch information
GuNa Skr authored and GuNa Skr committed Mar 11, 2022
1 parent fc2be62 commit dbca404
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions webapp/src/components/meeting_settings/meeting_settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,39 @@ export default class MeetingSettingsModal extends React.PureComponent {
];

customStyles = {
menu: (provided) => {
return {
...provided,
background: 'var(--center-channel-bg)',
color: 'var(--center-channel-color)',
};
},
option: (provided, { isFocused, isDisabled, isSelected }) => {
const bgColor = isFocused
? {
backgroundColor: 'var(--button-bg)',
color: 'var(--button-color)',
}
: {};

return {
...provided,
...bgColor,
':active': {
...provided[':active'],
backgroundColor: !isDisabled
? isSelected
? 'var(--button-bg)'
: 'var(--center-channel-bg)'
: undefined,
},
};
},
menuList: (provided) => {
return ({
...provided,
height: 188,
color: 'var(--center-channel-color)',
});
},
control: (provided, state) => ({
Expand All @@ -39,6 +68,7 @@ export default class MeetingSettingsModal extends React.PureComponent {
'&:hover': {
border: '1px solid #ced4da',
},
background: 'var(--center-channel-bg)',
}),
indicatorsContainer: (provided) => {
return ({
Expand All @@ -49,8 +79,9 @@ export default class MeetingSettingsModal extends React.PureComponent {
singleValue: (provided, state) => {
const opacity = state.isDisabled ? 0.5 : 1;
const transition = 'opacity 300ms';

return {...provided, opacity, transition};
const color = 'var(--center-channel-color)';
const background = 'var(--center-channel-bg)';
return { ...provided, opacity, transition, color, background };
},
}

Expand Down

0 comments on commit dbca404

Please sign in to comment.