Commit 211cccd4 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Introduce `xs` text size and update `text-sm` to `text-xs` in components

Add `xs` as a new text size equal to the existing `sm` text size and
update components using `text-sm` to use `text-xs`.

This will allow us to change the `sm` size to be the same as the `base`
size.
parent f53c61c6
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
*/ */
export default function AnnotationLicense() { export default function AnnotationLicense() {
return ( return (
<div className="pt-2 border-t text-sm leading-none"> <div className="pt-2 border-t text-xs leading-none">
<Link <Link
classes="flex items-center" classes="flex items-center"
color="text-light" color="text-light"
......
...@@ -158,7 +158,7 @@ function AnnotationShareControl({ ...@@ -158,7 +158,7 @@ function AnnotationShareControl({
className={classnames( className={classnames(
// Slightly larger font size for touch devices to correspond with // Slightly larger font size for touch devices to correspond with
// larger button and input sizes // larger button and input sizes
'flex w-full text-sm touch:text-base' 'flex w-full text-xs touch:text-base'
)} )}
> >
<InputGroup> <InputGroup>
......
...@@ -80,7 +80,7 @@ export default function AnnotationTimestamps({ ...@@ -80,7 +80,7 @@ export default function AnnotationTimestamps({
<div> <div>
{withEditedTimestamp && ( {withEditedTimestamp && (
<span <span
className="text-color-text-light text-sm italic" className="text-color-text-light text-xs italic"
data-testid="timestamp-edited" data-testid="timestamp-edited"
title={updated.absolute} title={updated.absolute}
> >
......
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
// This is a collection of font sizes used in existing sidebar components, // This is a collection of font sizes used in existing sidebar components,
// which will grow during the conversion-to-Tailwind process. These // which will grow during the conversion-to-Tailwind process. These
// are descriptive, not aspirational or prescriptive. // are descriptive, not aspirational or prescriptive.
xs: ['11px', '1.4'],
sm: ['11px', '1.4'], sm: ['11px', '1.4'],
base: ['13px', '1.4'], // Current base font size for sidebar base: ['13px', '1.4'], // Current base font size for sidebar
md: ['14px'], md: ['14px'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment