Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed multiple select label color #832

Merged
merged 8 commits into from
Jun 5, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/Common/MultipleSelect/MultipleSelect.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { Option, Select, SelectContainer } from "./MultipleSelectElements";
import styled from "styled-components";

/*
optionsValuesWithLabels=[
Expand All @@ -19,7 +20,7 @@ const MultipleSelect = ({ selectLabel, selectedValue, onValueSelect, optionsValu
});
return (
<SelectContainer>
{selectLabel && <label htmlFor="Select">{selectLabel}:</label>}
{selectLabel && <StyledLabel htmlFor="Select">{selectLabel}:</StyledLabel>}
<Select
name={selectLabel.toLowerCase()}
value={defaultValue || selectedValue}
Expand All @@ -30,4 +31,8 @@ const MultipleSelect = ({ selectLabel, selectedValue, onValueSelect, optionsValu
</SelectContainer>
);
};

const StyledLabel = styled.label`
color: #d7d7d7;
`;
export default MultipleSelect;