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

Fix typography docs #5055

Merged
merged 4 commits into from
Apr 17, 2024
Merged

Fix typography docs #5055

merged 4 commits into from
Apr 17, 2024

Conversation

dgtlntv
Copy link
Member

@dgtlntv dgtlntv commented Apr 15, 2024

Done

Fixed some of the typography docs to reflect the css more accuratly

QA

@dgtlntv dgtlntv added the Documentation 📝 Documentation changes or updates label Apr 15, 2024
@webteam-app
Copy link

@bartaz
Copy link
Member

bartaz commented Apr 16, 2024

Thanks @dgtlntv, looks good from my point of view.

@lyubomir-popov could you have a look if proposed changes are good?

@@ -103,9 +107,14 @@ Our type scale consists of 5 font sizes, expressed as rems (root em units). For
<p class="p-heading--1" style="font-size: 2.5rem; line-height: 3rem">H1 heading</p>
</td>
</tr>
<tr>
<td>64px</td>
<td>Ad hoc display headings for important bespoke pages on small and medium screens.</td>
Copy link
Contributor

Choose a reason for hiding this comment

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

why the inline styles?

Copy link
Member Author

Choose a reason for hiding this comment

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

In order to make sure that the right size is displayed, independent of the screen you are currently on. But I am now realising, that we need to do it both ways actually. So also need to set inline styles for the large screen version.

Copy link
Member

Choose a reason for hiding this comment

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

I guess the question is what do we want to present here: all the available size options, regardless of screen size - even if we never use them on same screen size (for example, both sizes of h2 heading, both sizes of display heading) - I guess 8 options? - this requires examples with inline styles.

Or do we want to show how many options we have on given screen size (5?): so list 1 row for h2 heading, 1 row for display heading, but maybe mention that their size depends on screen size? (and keep examples responsive)

@lyubomir-popov
Copy link
Contributor

seems ok to me. Can I ask for a drive-by - to fix the column widths of the th's here so these columns in the two tables align:
image

@dgtlntv
Copy link
Member Author

dgtlntv commented Apr 16, 2024

seems ok to me. Can I ask for a drive-by - to fix the column widths of the th's here so these columns in the two tables align: image

I don't know how to properly do that in Vanilla. Is that something you could take care of @bartaz?

@bartaz
Copy link
Member

bartaz commented Apr 16, 2024

I don't know how to properly do that in Vanilla. Is that something you could take care of @bartaz?

Resizing columns is one of the most annoying things (especially when it requires to replace markdown table with HTML one…) ;) Consider it done :)

Copy link
Member

@bartaz bartaz left a comment

Choose a reason for hiding this comment

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

looks good, thanks

@bartaz bartaz merged commit fe40c9d into canonical:main Apr 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants