Skip to content

Commit

Permalink
Some more style fixes for Select and Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-puzon-tri committed May 15, 2024
1 parent 41e9d12 commit b9a9375
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions lib/components/select.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.selectContainer > span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 80%;
}
9 changes: 8 additions & 1 deletion lib/components/select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Option, Select as MTSelect } from '@material-tailwind/react';
import styles from './select.module.css';

export interface OptionType {
label: string;
Expand All @@ -25,10 +26,16 @@ export const Select = ({ options, id, value, onChange }: SelectProps) => {
data-testid={`select-dropdown-${id}`}
value={value}
onChange={handleChange}
className="text-black"
className={`${styles['selectContainer']} text-gray-900 font-normal `}
containerProps={{
className: 'border-gray-400',
}}
labelProps={{
className: 'before:mr-0 after:ml-0',
}}
menuProps={{
className: 'font-medium text-gray-900 border-none shadow-md',
}}
>
{options.map((option, index) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/layout/FeedbackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FeedbackButton = () => {
variant="filled"
size="lg"
placeholder="Feedback"
className="rounded-b-sm rounded-t-none px-4 py-3 !font-medium text-base normal-case"
className="!rounded-b-sm !rounded-t-none px-4 py-3 !font-medium text-base normal-case"
onClick={window.showCollectorDialog}
>
Feedback
Expand Down

0 comments on commit b9a9375

Please sign in to comment.