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

chore: add .light-only and .dark-only rules to LS CSS #472

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

cat2608
Copy link
Contributor

@cat2608 cat2608 commented Jun 12, 2024

Description

  • Added CSS rules to toggle arrow icons based on the IDE theme.
  • Ensures correct arrow icon display for dark, light, and high-contrast themes.
  • Related to the migration from tab-based to arrow-based navigation in Fixed Code Examples (see PR #540).

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

light-high-contrast dark-high-contrast absyss
light-high-contrast dark-high-contrast absyss

@cat2608 cat2608 requested a review from a team as a code owner June 12, 2024 14:51
CHANGELOG.md Outdated
Comment on lines 3 to 5
## [2.12.3]
- Add CSS rules for `.light-only` and `.dark-only` to the LSP implementation. This allows the LSP to apply different styles based on the current theme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is in case we merge first #471

@cat2608 cat2608 requested a review from teodora-sandu June 12, 2024 15:16
Copy link
Contributor

@teodora-sandu teodora-sandu left a comment

Choose a reason for hiding this comment

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

I left a comment in snyk/snyk-ls#540 (comment) about a different way to do this, that would maybe take care of IntelliJ too. WDYT?

@cat2608 cat2608 force-pushed the refactor/IDE-294-replace-tabs-with-arrows branch from 2824a5e to 84b0666 Compare June 13, 2024 12:06
@cat2608
Copy link
Contributor Author

cat2608 commented Jun 13, 2024

I left a comment in snyk/snyk-ls#540 (comment) about a different way to do this, that would maybe take care of IntelliJ too. WDYT?

Thanks for approving this change 🙏 In this PR for IntelliJ I explain why I decided to go for this approach. I tried your suggestion, but I couldn't figure out how to choose between values for the stroke field when the user was changing the theme between light, dark, and high contrast. We can revisit this approach if you like :)

@cat2608 cat2608 merged commit a4f6160 into main Jun 13, 2024
7 checks passed
@cat2608 cat2608 deleted the refactor/IDE-294-replace-tabs-with-arrows branch June 13, 2024 12:38
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.

2 participants