-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UI: Increase base font size #23994
UI: Increase base font size #23994
Conversation
@@ -46,12 +46,12 @@ | |||
id="fileUploadToggle" | |||
@type="checkbox" | |||
name="fileUploadToggle" | |||
class="switch is-rounded is-success is-small" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Results: |
@@ -5,7 +5,7 @@ | |||
|
|||
.env-banner { | |||
align-self: center; | |||
border-radius: $size-1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted this variable because it was only used in one place
@@ -11,7 +11,7 @@ | |||
{{#each (filter-by "category" category this.mountTypes) as |type|}} | |||
<SelectableCard | |||
id={{type.type}} | |||
class="has-top-padding-m has-text-centered small-card" | |||
class="has-top-padding-l has-text-centered small-card" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -32,8 +32,6 @@ | |||
<div> | |||
<Toggle | |||
@name={{concat @attr.name "-validation-toggle"}} | |||
@status="success" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there were no alternatives to the component, so <Toggle>
now renders these classes by default
@@ -9,8 +9,6 @@ | |||
<ToolbarFilters> | |||
<Toggle | |||
@name="json" | |||
@status="success" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -80,7 +80,7 @@ object { | |||
|
|||
html { | |||
background-color: $white; | |||
font-size: 14px; | |||
font-size: $base-font-size; // 16px |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this where the font size increase happened
ui/app/styles/core/toggle.scss
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -6,7 +6,7 @@ | |||
{{#unless @uploadOnly}} | |||
<div class="level is-mobile"> | |||
<div class="level-left"> | |||
<label for="input-{{this.elementId}}" class="is-label" data-test-text-file-label> | |||
<label for="input-{{this.elementId}}" class="has-text-weight-semibold" data-test-text-file-label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,13 +38,6 @@ export default class ToggleComponent extends Component { | |||
get safeId() { | |||
return `toggle-${this.name.replace(/\W/g, '')}`; | |||
} | |||
get inputClasses() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only ever saw small
and success
passed in, so removed this getter
@kiannaquach - good catch with the entities input! I'll take a look at the placeholder text. For the overview cards - the larger button is not because of the font size change but because search select has a bottom margin and the button stretches to fill the space. This will be fixed when the buttons are replaced - I've mentioned it in that ticket to address the buttons stretching to fill
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Monkeychip - updated toolbar by increasing the |
This PR increases the on-prem UI base font size from 14px to 16px.
To accomplish this, sizing variables were first audited and updated to consistently use pixels for padding and margin values. In addition, this PR addresses some minor cleanup intended to make Helios practices easier to iteratively address in the future.
$spacing-xxs
(which is 4 pixels) is now$spacing-4
$size-
variables for margin or padding with equivalent pixel value. To preserve original spacing, pixel values were calculated using the14px
as the base rem size.