-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adding Typography components for Headings/Subheadings #16673
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
Conversation
started the job as gitpod-build-bmh-response-updates.1 because the annotations in the pull request description changed |
@@ -50,6 +50,9 @@ module.exports = { | |||
// TODO(andreafalzetti): remove custom ide-modal class once we implement https://github.com/gitpod-io/gitpod/issues/13116 | |||
51.5: "51.5rem", | |||
}, | |||
lineHeight: { |
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.
Adding this allows us to use a leading-64
class on our h1
so that it has the right line-height
.
components/dashboard/src/Login.tsx
Outdated
@@ -138,7 +139,7 @@ export function Login() { | |||
|
|||
return ( | |||
<div id="login-container" className="z-50 flex w-screen h-screen"> | |||
{showWelcome ? ( | |||
{!showWelcome ? ( |
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.
left over from debugging?
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.
oh wow, yah. Thanks for catching this 🙇
/werft run 👍 started the job as gitpod-build-bmh-response-updates.2 |
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.
LGTM
/hold for the inverted showWelcome
flag
59b8053
to
b2fe9b9
Compare
/unhold |
Minor spacing change to the delete account button under `/account`. Seems like a small side effect from the typography components added in #16673. https://github.com/gitpod-io/gitpod/blob/2d4f94634ce3178b224e62ac582dc005fc636f5a/components/dashboard/src/user-settings/Account.tsx#L93-L97 Cc @easyCZ because [relevant discussion](https://gitpod.slack.com/archives/C02EN94AEPL/p1680514715896819) (internal) Cc @selfcontained because #16673
Description
Introducing a set of typography components to normalize how we render Headings and Subheadings. This also aims to fix many places where we've used
<h2>
tags instead of a normal<p>
tag, and update most of our uses of<h3>
tags to be an<h2>
. Many uses of heading tags aren't correctly handling dark mode, so this also addresses that. Lastly, having components for typography related elements allows us to standardize any variations we might want to offer, such as slight color or tracking variations.I've approached this by creating the following components.
<Heading1>
<Heading2>
<Heading3>
<Subheading>
I didn't replace all of the existing uses of plain html heading elements (
<h1|2|3|4>
), but tried to get most of the ones that were easy to test. Eventually we can refactor remaining tags to use the components as well. Then we can decide if we want to just remove our global styles for headings in theindex.css
file.How to test
Most of the changes are found in User and Project settings. Clicking around to the various pages and ensuring headings and subheadings look correct should be a sufficient test.
Release Notes
Documentation
Build Options:
Experimental feature to run the build with GitHub Actions (and not in Werft).
leeway-target=components:all
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh