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

Sort Component Upgrade #414

Open
Tracked by #83
joshuajames-smith opened this issue Jun 7, 2022 · 0 comments
Open
Tracked by #83

Sort Component Upgrade #414

joshuajames-smith opened this issue Jun 7, 2022 · 0 comments
Labels
enhancement [Improvement] Enhancement request.

Comments

@joshuajames-smith
Copy link
Contributor

joshuajames-smith commented Jun 7, 2022

Problem

The UI for the sort component in CURATE requires updated styling for design system consistency and to also improve the UX.

Solution

The updated sort component should be in a dialogue box (filled: #FFFFFF > outlined: 1px #D9DDE9). The titled of the dialogue should be "Sort Data" (text-colour: #000000) with close functionality.

The box contains a select field, 2 radio buttons and 1 checkbox divided by a line (outline: 1px #D9DDE9) with a disabled button as standard (fill: #D3D3D3 > border-radius: 6px > text-colour: #595959).

CURATE – component  filter  – 1

The hover state for the select field outline should change colour to indicate user interaction (outline: #02FFAD).

CURATE – component  filter  – 2

When the select field is clicked by a user, the outline should change colour to indicate user interaction (outline: #000000) with the custom arrow icon pointing up. The placeholder text should be #A1A1A1 but the selected value text should be #000000.

The dropdown menu is the same width as the select field. The row hover state should be #E5E5E5 always. The selected value should be marked with a tick icon to the left.

CURATE – component  filter  – 3

Once a user clicks off, the select field returns to original state with select field value remaining.

The radio button has 2 states: selected (colour: #02FFAD) and unselected (colour: #D3D3D3) - styled as Material UI default. Only one can be selected - sort by descending should be selected by default.

The checkbox has 2 states: selected (colour: #02FFAD) and unselected (colour: #D3D3D3). This is a toggle - should be unselected by default.

Only once a user has selected a sort value should the button become active (fill: #02FFAD > border-radius: 6px > text-colour: #000000). A user must click the button to activate the sort otherwise clicking away with cancel the action.

CURATE – component  filter  – 4

Once a user has clicked the button, the dialogue should close. The sorted data is decided into sections via text (size: 18px > colour #000000) and divided by a line (outline: 1px #949494).

CURATE – component  filter  – 5

Adobe XD: https://xd.adobe.com/view/dfadac64-eaae-4c33-a8d1-1309d4bc1f24-8afe/

Considered Alternatives

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [Improvement] Enhancement request.
Projects
None yet
Development

No branches or pull requests

2 participants