Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runfix: adress responsivness of the preferences sections (WPB-7214) #17409

Merged
merged 4 commits into from
May 15, 2024

Conversation

V-Gira
Copy link
Contributor

@V-Gira V-Gira commented May 15, 2024

BugWPB-7214 [Web] Implement responsiveness using container queries instead of viewport media queries

Description

We can use container queries to have the content of the preference pages be responsive with its container instead of the viewport.

Standard media queries are used as a fallback.

This allows the preferences page to be responvive regardless of the state of the new sidebar

Screenshots/Screencast (for UI changes)

Before: (layout breaks just before going into responsive design with the sidebar opened)

Kooha-2024-05-15-14-58-52

After:

Kooha-2024-05-15-15-11-30

Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Comment on lines -55 to -57
input {
color: var(--background);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This appears to be a years old leftover that we can remove

overflowX: 'hidden',

// Rely on viewport media queries if container queries are not supported by the browser
'@media (max-width: 768px)': {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

css variables are not supported in media queries and less variables don't work outside of less files unfortunately

@V-Gira V-Gira marked this pull request as ready for review May 15, 2024 13:20
@V-Gira V-Gira requested review from otto-the-bot and a team as code owners May 15, 2024 13:20
@V-Gira V-Gira merged commit 295cbb2 into new-navigation May 15, 2024
18 checks passed
@V-Gira V-Gira deleted the v/settings-responsivness-v2 branch May 15, 2024 13:41
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.

3 participants