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

UX: update styling for related/suggested #23231

Merged
merged 6 commits into from Aug 24, 2023

Conversation

tytekkit
Copy link
Contributor

@tytekkit tytekkit commented Aug 24, 2023

This PR follows the previous updated of related/suggested buttons and addresses a couple issues:

  • Button states for icons
  • Wide mobile devices -> moves styling to desktop.scss

Wide Mobile:
Before
d5472e9a2c6a1c7105ba2fb13532efc0bfb13281

After -- based on mobile.scss instead of media query, absolute positioning is used in desktop.scss instead
CleanShot 2023-08-24 at 13 38 10@2x

Narrow Mobile:
Before
CleanShot 2023-08-24 at 13 35 17@2x
CleanShot 2023-08-24 at 13 46 00@2x

After
CleanShot 2023-08-24 at 13 34 29@2x
CleanShot 2023-08-24 at 13 44 47@2x

Button State Icons:

Before
CleanShot 2023-08-24 at 13 42 21

After
![CleanShot 2023-08-24 at 13 40 30]CleanShot 2023-08-24 at 13 40 30

This PR addresses state issues for icons of the Related & Suggested buttons, as well as well as fixes alignment issues for folding phones / tablets, wider mobile devices by moving styling to the desktop scss file.
Link new desktop/scss
@tytekkit tytekkit closed this Aug 24, 2023
@tytekkit
Copy link
Contributor Author

Will be re-opened after running some screen size tests

Add breathing space on mobile.
@tytekkit tytekkit reopened this Aug 24, 2023
}
}

@media screen and (min-width: 550px) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed media query -> desktop.scss

@@ -9,38 +9,23 @@
.btn {
color: var(--primary);
background-color: transparent;
border-bottom: 2px solid transparent;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed borders in lieu of box-shadows

.more-topics__container {
.nav {
position: absolute;
top: 2px;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs offset without border

@tytekkit tytekkit merged commit 0944666 into main Aug 24, 2023
13 checks passed
@tytekkit tytekkit deleted the ux-update-styling-related-and-suggested branch August 24, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants