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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme: Amend utility function bgBlur to not modulate background value #485

Merged
merged 1 commit into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/docs/content/components/card/cover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const Card4 = () => (
blur
css={{
position: "absolute",
bgBlur: "#ffffff",
bgBlur: "#ffffff66",
borderTop: "$borderWeights$light solid rgba(255, 255, 255, 0.2)",
bottom: 0,
zIndex: 1,
Expand Down Expand Up @@ -153,7 +153,7 @@ export const Card5 = () => (
blur
css={{
position: "absolute",
bgBlur: "#0f1114",
bgBlur: "#0f111466",
borderTop: "$borderWeights$light solid $gray700",
bottom: 0,
zIndex: 1,
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/theme/utilities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const utils = {
}),
bgBlur: (value) => ({
bf: 'saturate(180%) blur(10px)',
bg: `${value}66`
bg: value
}),
bgColor: (value) => ({
backgroundColor: value
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export default CustomButton;
}),
bgBlur: (value) => ({
bf: 'saturate(180%) blur(10px)',
bg: \`$\{value}66\`,
bg: value
}),
bgColor: (value) => ({
backgroundColor: value
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/card/card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const AbsImgWithHeaderFooter = () => {
blur
css={{
position: 'absolute',
bgBlur: '#0f1114',
bgBlur: '#0f111466',
borderTop: '$borderWeights$light solid $gray500',
bottom: 0,
zIndex: 1
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/theme/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const defaultUtils = {
}),
bgBlur: (value: Stitches.PropertyValue<'backgroundColor'>) => ({
bf: 'saturate(180%) blur(10px)',
bg: `${value}66`
bg: value
}),
bgColor: (value: Stitches.PropertyValue<'backgroundColor'>) => ({
backgroundColor: value
Expand Down