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

Add Accordion to hide Image Compression section #589

Closed
wants to merge 1 commit into from
Closed

Conversation

menghif
Copy link
Collaborator

@menghif menghif commented Apr 14, 2024

Fixes #522

This PR moves the Image Compression section of the User Settings into an Accordion that is hidden by default.

@menghif menghif self-assigned this Apr 14, 2024
@humphd humphd requested review from mingming-ma and Amnish04 April 14, 2024 16:27
Copy link
Collaborator

@mingming-ma mingming-ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +961 to 967
<FormControl>
<Accordion allowToggle>
<AccordionItem>
<AccordionButton>
<FormLabel as="legend" flex="1">
Image Compression
</FormLabel>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably not wrap the Accordion in a FormControl.
And since we do not have a fieldset anymore, we should not have a legend either.

Invalid HTML

We could do something like this as suggested in Chakra Docs

<AccordionButton>
  <Box as='span' flex='1' textAlign='left'>
    Section 1 title
  </Box>
  <AccordionIcon />
</AccordionButton>

@menghif
Copy link
Collaborator Author

menghif commented Apr 20, 2024

Closing this in favour of the bigger changes in #592

@menghif menghif closed this Apr 20, 2024
@menghif menghif deleted the issue-522 branch June 17, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advanced Image Compression settings should be hidden by default
3 participants