Skip to content

Fix to invalid keyframes in component-pickup-availability.css#3618

Closed
Matt-Kaminski wants to merge 1 commit intoShopify:mainfrom
Matt-Kaminski:patch-1
Closed

Fix to invalid keyframes in component-pickup-availability.css#3618
Matt-Kaminski wants to merge 1 commit intoShopify:mainfrom
Matt-Kaminski:patch-1

Conversation

@Matt-Kaminski
Copy link

@Matt-Kaminski Matt-Kaminski commented Sep 20, 2024

The original animateDrawerOpen keyframes contained media queries directly inside the keyframes rule, which is not valid CSS syntax. Keyframe animations cannot include media queries in this way.

The animation now correctly defines the keyframes without attempting to use media queries within the keyframes rule.

PR Summary:

Fix pickup availability drawer open animation

What approach did you take?

  1. Removed invalid media query syntax from within the keyframes rule
  2. Simplified to a single set of keyframes that applies to all screen sizes

Visual impact on existing themes

Fix pickup availability drawer open animation

Checklist

Correct invalid CSS structure in component-pickup-availability.css

The original animateDrawerOpen keyframes contained media queries directly inside the @Keyframes rule, which is not valid CSS syntax. Keyframe animations cannot include media queries in this way.

Changes made:
1. Removed invalid media query syntax from within the @Keyframes rule
2. Simplified to a single set of keyframes that applies to all screen sizes

The animation now correctly defines the keyframes without attempting to 
use media queries within the @Keyframes rule.
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