Skip to content

fix(FixedFooterLayout): obscured focus#1334

Merged
atabel merged 10 commits into
masterfrom
fix-button-fixed-footer-layout-obscured-focus
Mar 27, 2025
Merged

fix(FixedFooterLayout): obscured focus#1334
atabel merged 10 commits into
masterfrom
fix-button-fixed-footer-layout-obscured-focus

Conversation

@SilasYaw
Copy link
Copy Markdown
Contributor

@SilasYaw SilasYaw commented Mar 27, 2025

fix(FixedFooterLayout): fixed footer layout obscured focus

  • This pull request includes a small change to the FixedFooterLayout component in src/fixed-footer-layout.tsx. The change ensures that when the footer is visible, a style is applied to set the scroll-padding-bottom to the height of the footer.

  • src/fixed-footer-layout.tsx: Added a style element to set scroll-padding-bottom when the footer is visible.
    This commit is related to [O2DE-6995].

This commit implements the necessary changes to dynamically handle `scroll-padding-bottom` on the `html` element. This ensures that the fixed footer does not block the focus of overflow elements when visible.

Changes:
- Added a `<style>` tag to dynamically set `scroll-padding-bottom` on the `html` element based on the footer height.
- Ensured that the fixed footer height is calculated and applied declaratively.
- Updated the `FixedFooterLayout` component to handle this behavior consistently across devices.
This commit implements the necessary changes to dynamically handle scroll-padding-bottom on the html element. This ensures that the fixed footer does not block the focus of overflow elements when visible.

Added a <style> tag to dynamically set  scroll-padding-bottom on the html element based on the footer height.

Related:
This commit is related to [O2DE-6995](https://jira.tid.es/browse/O2DE-6995).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2025

Size stats

master this branch diff
Total JS 12.4 MB 12.4 MB +279 B
JS without icons 2.12 MB 2.12 MB +279 B
Lib overhead 78.8 kB 78.8 kB 0 B
Lib overhead (gzip) 17.6 kB 17.6 kB 0 B

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2025

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@claramunt claramunt changed the title Fix button fixed footer layout obscured focus Fix(FixedFooterLayout) obscured focus Mar 27, 2025
@SilasYaw SilasYaw changed the title Fix(FixedFooterLayout) obscured focus fix: fixed footer layout obscured focus Mar 27, 2025
@SilasYaw SilasYaw changed the title fix: fixed footer layout obscured focus fix: footer layout obscured focus Mar 27, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2025

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-idw6xytm2-flows-projects-65bb050e.vercel.app

Built with commit 2605de2.
This pull request is being automatically deployed with vercel-action

@claramunt claramunt changed the title fix: footer layout obscured focus fix(FixedFooterLayout): obscured focus Mar 27, 2025
@claramunt claramunt added the o2de label Mar 27, 2025
Comment thread src/fixed-footer-layout.tsx Outdated
Comment thread src/fixed-footer-layout.tsx Outdated
Added condition to included the visibility of the footer

Refactor condition to ensure style is applied only when the footer is visible and editable
… Refactor condition to ensure style is applied, removed ; only when the footer is visible and editable
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2025

Screenshot tests report

✔️ All passing

@atabel atabel added this pull request to the merge queue Mar 27, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 27, 2025
@atabel atabel added this pull request to the merge queue Mar 27, 2025
Merged via the queue into master with commit 1a89176 Mar 27, 2025
@atabel atabel deleted the fix-button-fixed-footer-layout-obscured-focus branch March 27, 2025 16:26
tuentisre pushed a commit that referenced this pull request Mar 27, 2025
## [16.18.2](v16.18.1...v16.18.2) (2025-03-27)

### Bug Fixes

* **FixedFooterLayout:** obscured focus ([#1334](#1334)) ([1a89176](1a89176)), closes [/#diff-a20f24af3140080300870a68a5accb89feee523f1c59592a9e57d0f2bf4d02baR166](https://github.com///issues/diff-a20f24af3140080300870a68a5accb89feee523f1c59592a9e57d0f2bf4d02baR166)
@tuentisre
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.18.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants