mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-20 13:18:15 +08:00
#24658 moves focus to #center after a tutorial tool or workflow button opens a page, adding tabindex="-1" so the panel can take focus. The attribute stayed for the rest of the session, so later mouse clicks on blank parts of the center panel focused #center instead of <body>. Remove it on the first blur. In Chromium the programmatic focus matches :focus-visible whether the button was activated by keyboard or mouse (focus was last inside the tutorial iframe), so bootstrap's reboot rule does not hide the outline and a ring was drawn around the whole center panel. The webhook's own stylesheet now drops the outline while #center holds that temporary tabindex. Checked in headless Chromium (Playwright) with bootstrap 4.6 CSS, the webhook's styles.css and its focusMainContent: before, the outline was "auto 1px" and a later blank click focused #center; after, the outline is "none" and the click focuses <body>.