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

Regression in box-shadow Sass variable syntax #5987

Closed
adidahiya opened this issue Mar 1, 2023 · 2 comments · Fixed by #5989
Closed

Regression in box-shadow Sass variable syntax #5987

adidahiya opened this issue Mar 1, 2023 · 2 comments · Fixed by #5989

Comments

@adidahiya
Copy link
Contributor

Environment

  • Package version(s): @blueprintjs/core v4.17.0

Actual behavior

box-shadow variables have extra commas which make them unusable in box-shadow: $pt-elevation-box-shadow Sass usage

$pt-elevation-shadow-0: 0, 0, 0, 1px, rgba(17, 20, 24, 0.15) !default;

Expected behavior

they were fine in v4.16.x variables.scss:

$pt-elevation-shadow-0: 0 0 0 1px rgba(17, 20, 24, 0.15) !default;

Possible solution

Caused by #5904, need to look into how we generate CSS variables...

@adidahiya
Copy link
Contributor Author

It seems like the quotes on strings got dropped too.

Before:

$icons16-family: "blueprint-icons-16" !default;
$icons20-family: "blueprint-icons-20" !default;

$pt-icon-size-standard: 16px !default;
$pt-icon-size-large: 20px !default;

$pt-font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto",
  "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue",
  "blueprint-icons-16", sans-serif !default;

After:

$icons16-family: blueprint-icons-16 !default;
$icons20-family: blueprint-icons-20 !default;

$pt-icon-size-standard: 16px !default;
$pt-icon-size-large: 20px !default;

$pt-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
  Ubuntu, Cantarell, Open Sans, Helvetica Neue, blueprint-icons-16, sans-serif !default;

@adidahiya
Copy link
Contributor Author

Note that these variables are only broken for consumers of the Sass variables, and not internally in Blueprint styles:

2023-03-01 17 16 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant