Skip to content

refactor(site): improve settings option #11489

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

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

BrunoQuaresma
Copy link
Collaborator

Before:
Screenshot 2024-01-08 at 10 16 54

After:
Screenshot 2024-01-08 at 10 20 44

@BrunoQuaresma BrunoQuaresma self-assigned this Jan 8, 2024
@BrunoQuaresma BrunoQuaresma requested review from a team and Kira-Pilot and removed request for a team January 8, 2024 13:25
border: `1px solid ${borderColor}`,
}}
/>
</OptionConfigContext.Provider>
Copy link
Member

@Kira-Pilot Kira-Pilot Jan 8, 2024

Choose a reason for hiding this comment

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

Are we missing some children in here? Not sure how what context is wrapping.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

children is a regular prop from any HTML element so we don't need to pass it manually since it is already inside of the props.

const theme = useTheme();
const { isSource } = useContext(OptionConfigContext);
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to target the background-color via CSS nesting in the parent? Introducing a new context for a style ternary in one place seems a little heavy-handed to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was wondering the same 🤔 going to make that instead.

Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

nice

@BrunoQuaresma BrunoQuaresma merged commit a613a0a into main Jan 8, 2024
@BrunoQuaresma BrunoQuaresma deleted the bq/improve-settings branch January 8, 2024 16:16
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants