-
Notifications
You must be signed in to change notification settings - Fork 181
fix: update button font size and padding to prevent overlap #985
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
ad47d66
cdc51c4
dc740a9
e5197a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,7 +113,13 @@ button.chevron { | |
| .option > button > span { | ||
| text-align: left; | ||
| padding-left: 44px; | ||
| padding-right: 10px; | ||
| padding-right: 38px; | ||
| display: inline-block; | ||
| width: 100%; | ||
| font-size: 0.75rem; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have some concerns regarding the approach of reducing the font size to fit the text within the container. While it solves the immediate constraint, it introduces a couple of problems:
I suggest to explore adjusting the grid column width to leave more space for the dropdowns instead, as long as it aligns with the site's design style guide (if any). I recommend confirming this with the site maintainers. |
||
|
|
||
| @media (min-width: $breakpoint-tablet) { | ||
| font-size: 1rem; | ||
| padding-right: 10px; | ||
hxrshxz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,7 +126,7 @@ h4 { | |
| font-size: 1.5rem; | ||
| line-height: 1.1333; | ||
| -webkit-text-stroke-width: 0.15px; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .text-body-large { | ||
|
|
@@ -291,7 +291,9 @@ pre.code-box, | |
| white-space: break-spaces; | ||
| } | ||
|
|
||
| .callout, .experimental, .deprecated { | ||
| .callout, | ||
| .experimental, | ||
| .deprecated { | ||
| padding: var(--spacing-sm); | ||
| border-radius: 20px; | ||
| background-color: var(--bg-magenta-20); | ||
|
|
@@ -308,7 +310,8 @@ pre.code-box, | |
| } | ||
| } | ||
|
|
||
| .experimental, .deprecated { | ||
| .experimental, | ||
| .deprecated { | ||
| background-color: var(--bg-yellow); | ||
| } | ||
|
|
||
|
|
@@ -382,8 +385,7 @@ pre.code-box, | |
| justify-content: space-between; | ||
|
|
||
| // 43px is the height of the top mobile bar menu | ||
| height: calc(50vh - var(--spacing-5xl) - 43px); | ||
| max-height: calc(50vh - var(--spacing-5xl) - 43px); | ||
| min-height: calc(50vh - var(--spacing-5xl) - 43px); | ||
hxrshxz marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Curious if there is any concern to remove the height/max-height/min-height CSS in this component? |
||
|
|
||
| @media (min-width: $breakpoint-tablet) { | ||
| height: calc(50vh - var(--spacing-5xl)); | ||
|
|
@@ -515,8 +517,8 @@ input[type="search"]::-webkit-search-results-decoration { | |
| display: -webkit-box; // Needs webkit box to support line-clamp | ||
| } | ||
|
|
||
| .dark-theme.monochrome-theme .renderable-alt{ | ||
| color: var(--type-black); | ||
| .dark-theme.monochrome-theme .renderable-alt { | ||
| color: var(--type-black); | ||
| } | ||
|
|
||
| .skip-to-main { | ||
|
|
@@ -544,4 +546,4 @@ input[type="search"]::-webkit-search-results-decoration { | |
| body { | ||
| --donate-banner-dark: #c01c4c; | ||
| --donate-banner-background: var(--donate-p5-background); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.