Skip to content

Conversation

@stefansundin
Copy link
Contributor

This hides the bootstrap animation on the form-switch elements in the Settings page when the page loads the initial values.

Screenshots or videos

When I open the Settings, I see this distracting animation:

Screen.Recording.2025-12-22.at.22.04.37.mov

Testing strategy

When I was testing without setTimeout then the animation still showed up for me. I don't know how the browser internals keeps track of it but adding a short timeout seems reasonable to me.

To test, simply open the settings page and use your browser's hard reload shortcut.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

Copilot AI review requested due to automatic review settings December 23, 2025 06:13
Copy link

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

This PR fixes a visual bug where form-switch elements display a distracting animation when the options/settings page loads. The solution temporarily disables CSS transitions on page load and re-enables them after initial values are set.

Key changes:

  • Adds a no-transitions CSS class that disables all transitions on descendant elements
  • Applies the class to the body element on initial page load
  • Removes the class after a 200ms delay once settings are initialized

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
keepassxc-browser/options/options.html Adds no-transitions class to body element to disable transitions on initial load
keepassxc-browser/options/options.css Defines the no-transitions CSS rule that disables all transitions on child elements
keepassxc-browser/options/options.js Implements timeout logic to remove no-transitions class after 200ms, allowing normal transitions to resume

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

@varjolintu varjolintu self-requested a review December 23, 2025 07:10
@varjolintu varjolintu added this to the 1.9.12 milestone Dec 23, 2025
Copy link
Member

@varjolintu varjolintu left a comment

Choose a reason for hiding this comment

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

Implement the Copilot's suggestion.

Apply suggestion from GitHub Copilot to narrow CSS selector.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings January 5, 2026 23:48
Copy link

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


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

Copilot AI review requested due to automatic review settings January 5, 2026 23:56
Copy link

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


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

@varjolintu varjolintu self-requested a review January 6, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants