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 css changes needed for new ls data-flow #564

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

DariusZdroba
Copy link
Contributor

Description

Required changes to accommodate styling from the new data-flow design and addition of data-flows to AI fixes.
Related: snyk/snyk-ls#733

Checklist

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

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@DariusZdroba DariusZdroba requested a review from a team as a code owner December 12, 2024 12:49
@@ -1,5 +1,9 @@
@import '../../common/webview';

.data-flow-number{
background-color: var(--vscode-editor-background);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.075));
Copy link
Contributor

Choose a reason for hiding this comment

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

can't this be pushed down to LS?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, does the hardcoded gradient work on light and dark? I suppose we should use variables here :)

Copy link
Contributor Author

@DariusZdroba DariusZdroba Dec 13, 2024

Choose a reason for hiding this comment

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

I couldn't find a variable that would work with different themes, without adding anything else to VSCode, I could add the change to LS but on light mode, the background of the bubbles would be the same color as the "table"'s they're in. I could use variables but I think they would probabbly still need to be defined in VSCode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this is still fine, I can add it to Language Server, but if we want to match the figma more, the bubbles should have the general background of the panel.
Screenshot 2024-12-13 at 11 51 53

Copy link
Contributor Author

@DariusZdroba DariusZdroba Dec 13, 2024

Choose a reason for hiding this comment

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

I removed the background-color attribute and left it in LS, I left background-image and added theme specific style, if we specifically don't want to agglomerate CSS files, we could replace the variable depending on the theme, but I'm not sure if there would be much difference.

@DariusZdroba DariusZdroba merged commit 8a03f1f into main Dec 16, 2024
10 checks passed
@DariusZdroba DariusZdroba deleted the chore/css-refactoring branch December 16, 2024 11:59
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.

3 participants