diff --git a/components/AccountModal/index.scss b/components/AccountModal/index.scss index 55e8df49..f5372ff1 100644 --- a/components/AccountModal/index.scss +++ b/components/AccountModal/index.scss @@ -19,11 +19,11 @@ height: $height; &:focus { - box-shadow: 0 0 0 2px $grey-10; + box-shadow: 0 0 0 2px $grey-15; } &[data-state='checked'] { - background: $grey-10; + background: $grey-15; } } @@ -60,7 +60,7 @@ &:not(.btn-disabled) { background: $grey-90; - color: $grey-40; + color: $grey-50; &:hover { background: $grey-80; @@ -89,7 +89,7 @@ gap: calc($unit / 2); label { - color: $grey-10; + color: $grey-15; font-size: $font-regular; } diff --git a/components/Alert/index.scss b/components/Alert/index.scss index f6ef01e7..d8fdc1ea 100644 --- a/components/Alert/index.scss +++ b/components/Alert/index.scss @@ -42,7 +42,7 @@ &:not(.btn-disabled) { background: $grey-90; - color: $grey-40; + color: $grey-50; &:hover { background: $grey-80; diff --git a/components/AxSelect/index.scss b/components/AxSelect/index.scss index d1717c8b..98b5a435 100644 --- a/components/AxSelect/index.scss +++ b/components/AxSelect/index.scss @@ -34,7 +34,7 @@ background-color: $grey-90; border-radius: 6px; box-sizing: border-box; - color: $grey-10; + color: $grey-15; height: $unit * 6; display: block; font-size: $font-regular; diff --git a/components/Button/index.scss b/components/Button/index.scss index 7d88cca7..d437ea45 100644 --- a/components/Button/index.scss +++ b/components/Button/index.scss @@ -3,7 +3,7 @@ background: transparent; border: none; border-radius: 6px; - color: $grey-50; + color: $grey-55; display: inline-flex; font-size: $font-button; font-weight: $normal; @@ -13,15 +13,15 @@ &:hover { background: $grey-100; cursor: pointer; - color: $grey-10; + color: $grey-15; .icon svg { - fill: $grey-10; + fill: $grey-15; } .icon.stroke svg { fill: none; - stroke: $grey-10; + stroke: $grey-15; } } @@ -77,7 +77,7 @@ margin-top: 2px; svg { - fill: $grey-50; + fill: $grey-55; height: 12px; width: 12px; } @@ -90,7 +90,7 @@ &.stroke svg { fill: none; - stroke: $grey-50; + stroke: $grey-55; } &.settings svg { @@ -143,11 +143,11 @@ &.null { background: $grey-90; - color: $grey-50; + color: $grey-55; &:hover { background: $grey-70; - color: $grey-10; + color: $grey-15; } } diff --git a/components/CharLimitedFieldset/index.scss b/components/CharLimitedFieldset/index.scss index da0a29ac..dc9eb4a5 100644 --- a/components/CharLimitedFieldset/index.scss +++ b/components/CharLimitedFieldset/index.scss @@ -17,7 +17,7 @@ } .Counter { - color: $grey-50; + color: $grey-55; font-weight: $bold; line-height: 42px; } diff --git a/components/CharacterConflictModal/index.scss b/components/CharacterConflictModal/index.scss index 48176c81..866ec8f7 100644 --- a/components/CharacterConflictModal/index.scss +++ b/components/CharacterConflictModal/index.scss @@ -8,7 +8,7 @@ } .arrow { - color: $grey-50; + color: $grey-55; font-size: 4rem; text-align: center; } @@ -52,7 +52,7 @@ &:not(.btn-disabled) { background: $grey-90; - color: $grey-40; + color: $grey-50; &:hover { background: $grey-80; diff --git a/components/ElementToggle/index.scss b/components/ElementToggle/index.scss index 11517faa..66b60813 100644 --- a/components/ElementToggle/index.scss +++ b/components/ElementToggle/index.scss @@ -12,7 +12,7 @@ background: $grey-100; border: none; border-radius: 18px; - color: $grey-40; + color: $grey-50; flex-grow: 1; font-size: $font-regular; padding: ($unit) $unit * 2; @@ -29,7 +29,7 @@ &:hover, &[data-state='on'] { background: $grey-80; - color: $grey-10; + color: $grey-15; &.fire { background: $fire-bg-20; diff --git a/components/FilterBar/index.scss b/components/FilterBar/index.scss index 60204302..9098df3c 100644 --- a/components/FilterBar/index.scss +++ b/components/FilterBar/index.scss @@ -31,7 +31,7 @@ // background-position-y: center; // background-position-x: 95%; // background-size: $unit * 1.5; - color: $grey-50; + color: $grey-55; font-size: $font-small; margin: 0; max-width: 200px; diff --git a/components/GridRep/index.scss b/components/GridRep/index.scss index 436182c9..1905d603 100644 --- a/components/GridRep/index.scss +++ b/components/GridRep/index.scss @@ -109,7 +109,7 @@ .raid, .user, time { - color: $grey-50; + color: $grey-55; font-size: $font-small; } diff --git a/components/HeaderMenu/index.scss b/components/HeaderMenu/index.scss index 538936e6..1cc4cbb1 100644 --- a/components/HeaderMenu/index.scss +++ b/components/HeaderMenu/index.scss @@ -9,16 +9,16 @@ } .MenuItem { - color: $grey-40; + color: $grey-50; font-weight: $normal; &:hover:not(.disabled) { background: $grey-95; - color: $grey-10; + color: $grey-15; cursor: pointer; a { - color: $grey-10; + color: $grey-15; } } @@ -95,7 +95,7 @@ } a { - color: $grey-40; + color: $grey-50; } & > a, diff --git a/components/JobDropdown/index.scss b/components/JobDropdown/index.scss index e69de29b..35cec4d9 100644 --- a/components/JobDropdown/index.scss +++ b/components/JobDropdown/index.scss @@ -0,0 +1,3 @@ +.Job.SelectTrigger { + margin-bottom: $unit; +} diff --git a/components/JobDropdown/index.tsx b/components/JobDropdown/index.tsx index 111b2950..3b1d468c 100644 --- a/components/JobDropdown/index.tsx +++ b/components/JobDropdown/index.tsx @@ -2,6 +2,10 @@ import React, { useEffect, useState } from 'react' import { useRouter } from 'next/router' import { useSnapshot } from 'valtio' +import Select from '~components/Select' +import SelectItem from '~components/SelectItem' +import SelectGroup from '~components/SelectGroup' + import { appState } from '~utils/appState' import { jobGroups } from '~utils/jobGroups' @@ -26,6 +30,7 @@ const JobDropdown = React.forwardRef( const { party } = useSnapshot(appState) // Set up local states for storing jobs + const [open, setOpen] = useState(false) const [currentJob, setCurrentJob] = useState() const [jobs, setJobs] = useState() const [sortedJobs, setSortedJobs] = useState() @@ -58,10 +63,14 @@ const JobDropdown = React.forwardRef( } }, [appState, props.currentJob]) + function openJobSelect() { + setOpen(!open) + } + // Enable changing select value - function handleChange(event: React.ChangeEvent) { + function handleChange(value: string) { if (jobs) { - const job = jobs.find((job) => job.id === event.target.value) + const job = jobs.find((job) => job.id === value) if (props.onChange) props.onChange(job) setCurrentJob(job) } @@ -76,36 +85,37 @@ const JobDropdown = React.forwardRef( .sort((a, b) => a.order - b.order) .map((item, i) => { return ( - + ) }) const groupName = jobGroups.find((g) => g.slug === group)?.name[locale] return ( - + {options} - + ) } return ( - + ) } ) diff --git a/components/JobSection/index.scss b/components/JobSection/index.scss index 2d9adc9a..dfd34109 100644 --- a/components/JobSection/index.scss +++ b/components/JobSection/index.scss @@ -28,7 +28,7 @@ } .JobImage { - $height: 249px; + $height: 252px; $width: 447px; background: url('/images/background_a.jpg'); diff --git a/components/JobSkillItem/index.scss b/components/JobSkillItem/index.scss index 22697fab..0203afe3 100644 --- a/components/JobSkillItem/index.scss +++ b/components/JobSkillItem/index.scss @@ -44,7 +44,11 @@ } } - p.placeholder { - color: var(--text-secondary); + p { + color: var(--text-primary); + + &.placeholder { + color: var(--text-secondary); + } } } diff --git a/components/JobSkillResult/index.scss b/components/JobSkillResult/index.scss index 3dd464c8..2d72fb40 100644 --- a/components/JobSkillResult/index.scss +++ b/components/JobSkillResult/index.scss @@ -23,7 +23,7 @@ .skill.pill { background: $grey-90; border-radius: $unit * 2; - color: $grey-10; + color: $grey-15; display: inline; font-size: $font-tiny; font-weight: $medium; diff --git a/components/LoginModal/index.scss b/components/LoginModal/index.scss index d6174992..e73b400d 100644 --- a/components/LoginModal/index.scss +++ b/components/LoginModal/index.scss @@ -17,7 +17,7 @@ &:not(.btn-disabled) { background: $grey-90; - color: $grey-40; + color: $grey-50; &:hover { background: $grey-80; diff --git a/components/RaidDropdown/index.tsx b/components/RaidDropdown/index.tsx index 50ca41ee..95a1b145 100644 --- a/components/RaidDropdown/index.tsx +++ b/components/RaidDropdown/index.tsx @@ -4,7 +4,6 @@ import { useRouter } from 'next/router' import Select from '~components/Select' import SelectItem from '~components/SelectItem' import SelectGroup from '~components/SelectGroup' -import { SelectSeparator } from '@radix-ui/react-select' import api from '~utils/api' import { appState } from '~utils/appState' @@ -131,7 +130,7 @@ const RaidDropdown = React.forwardRef( return (