Skip to content

Support string for transition/backgroundTransition#3899

Open
tjenkinson wants to merge 2 commits into
hakimel:masterfrom
tjenkinson:patch-1
Open

Support string for transition/backgroundTransition#3899
tjenkinson wants to merge 2 commits into
hakimel:masterfrom
tjenkinson:patch-1

Conversation

@tjenkinson
Copy link
Copy Markdown

When implementing custom transitions in css I am passing a custom name here, which does go through to the class.

So I think it makes sense to support string in the types?

The & {} is so that autocomplete still works for the other options

The `& {}` is so that autocomplete still works for the other options
Copilot AI review requested due to automatic review settings May 2, 2026 19:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Extends the RevealConfig transition option typings so transition and backgroundTransition can accept custom transition names (strings), enabling custom CSS transition class usage while keeping literal autocomplete.

Changes:

  • Broadened TransitionStyle to include arbitrary string values via the (string & {}) autocomplete-preserving pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread js/config.ts
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