Commit f53c61c6 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Add `md` text size and apply to components currently using `lg`

Update all cases using `text-lg` to use `text-md` (a new text size).
This allows a text size between `base` and `lg`.
parent 369fbba9
...@@ -151,7 +151,7 @@ function AnnotationShareControl({ ...@@ -151,7 +151,7 @@ function AnnotationShareControl({
)} )}
width="custom" width="custom"
> >
<h2 className="text-brand text-lg font-medium"> <h2 className="text-brand text-md font-medium">
Share this annotation Share this annotation
</h2> </h2>
<div <div
......
...@@ -35,7 +35,7 @@ function FilterSelect({ ...@@ -35,7 +35,7 @@ function FilterSelect({
className={classnames( className={classnames(
// Don't allow the label text to wrap // Don't allow the label text to wrap
'shrink-0 flex items-center gap-x-2', 'shrink-0 flex items-center gap-x-2',
'text-color-text font-bold text-lg' 'text-color-text font-bold text-md'
)} )}
> >
{Icon && <Icon className="w-4 h-4" />} {Icon && <Icon className="w-4 h-4" />}
......
...@@ -90,7 +90,7 @@ function GroupList({ settings }) { ...@@ -90,7 +90,7 @@ function GroupList({ settings }) {
<span <span
className={classnames( className={classnames(
// Don't allow this label to shrink (wrap to next line) // Don't allow this label to shrink (wrap to next line)
'shrink-0 flex items-center gap-x-1 text-lg text-color-text font-bold' 'shrink-0 flex items-center gap-x-1 text-md text-color-text font-bold'
)} )}
> >
{icon && ( {icon && (
......
...@@ -53,7 +53,7 @@ function HelpPanelTab({ linkText, url }: HelpPanelTabProps) { ...@@ -53,7 +53,7 @@ function HelpPanelTab({ linkText, url }: HelpPanelTabProps) {
<div <div
// Set this element's flex-basis and also establish // Set this element's flex-basis and also establish
// a flex container (centered on both axes) // a flex container (centered on both axes)
className="flex-1 flex items-center justify-center border-r last-of-type:border-r-0 text-lg font-medium" className="flex-1 flex items-center justify-center border-r last-of-type:border-r-0 text-md font-medium"
> >
<Link color="text-light" href={url} target="_blank"> <Link color="text-light" href={url} target="_blank">
<div className="flex items-center gap-x-2"> <div className="flex items-center gap-x-2">
...@@ -144,7 +144,7 @@ function HelpPanel({ session }: HelpPanelProps) { ...@@ -144,7 +144,7 @@ function HelpPanel({ session }: HelpPanelProps) {
> >
<div className="space-y-4"> <div className="space-y-4">
<div className="flex items-center"> <div className="flex items-center">
<h3 className="grow text-lg font-medium" data-testid="subpanel-title"> <h3 className="grow text-md font-medium" data-testid="subpanel-title">
{subPanelTitles[activeSubPanel]} {subPanelTitles[activeSubPanel]}
</h3> </h3>
{activeSubPanel === 'versionInfo' && ( {activeSubPanel === 'versionInfo' && (
......
...@@ -214,7 +214,7 @@ export default function Menu({ ...@@ -214,7 +214,7 @@ export default function Menu({
'focus-visible-ring', 'focus-visible-ring',
// Position menu content near bottom of menu label/toggle control // Position menu content near bottom of menu label/toggle control
'absolute top-[calc(100%+5px)] z-1 border shadow', 'absolute top-[calc(100%+5px)] z-1 border shadow',
'bg-white text-lg', 'bg-white text-md',
{ {
'left-0': align === 'left', 'left-0': align === 'left',
'right-0': align === 'right', 'right-0': align === 'right',
......
...@@ -138,7 +138,7 @@ function NotebookView({ loadAnnotationsService, streamer }) { ...@@ -138,7 +138,7 @@ function NotebookView({ loadAnnotationsService, streamer }) {
<div className="justify-self-start"> <div className="justify-self-start">
<NotebookFilters /> <NotebookFilters />
</div> </div>
<div className="flex items-center lg:justify-self-end text-lg font-medium"> <div className="flex items-center lg:justify-self-end text-md font-medium">
{pendingUpdateCount > 0 && !hasAppliedFilter && ( {pendingUpdateCount > 0 && !hasAppliedFilter && (
<IconButton <IconButton
icon="refresh" icon="refresh"
......
...@@ -66,7 +66,7 @@ function PaginationNavigation({ ...@@ -66,7 +66,7 @@ function PaginationNavigation({
return ( return (
<div <div
className="flex items-center text-lg" className="flex items-center text-md"
data-testid="pagination-navigation" data-testid="pagination-navigation"
> >
<div className="w-28 h-10"> <div className="w-28 h-10">
......
...@@ -146,7 +146,7 @@ function TopBar({ ...@@ -146,7 +146,7 @@ function TopBar({
<UserMenu onLogout={onLogout} /> <UserMenu onLogout={onLogout} />
) : ( ) : (
<div <div
className="flex items-center text-lg font-medium space-x-1" className="flex items-center text-md font-medium space-x-1"
data-testid="login-links" data-testid="login-links"
> >
{!isLoggedIn && !hasFetchedProfile && <span></span>} {!isLoggedIn && !hasFetchedProfile && <span></span>}
......
...@@ -83,6 +83,7 @@ export default { ...@@ -83,6 +83,7 @@ export default {
// are descriptive, not aspirational or prescriptive. // are descriptive, not aspirational or prescriptive.
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'],
lg: ['14px'], lg: ['14px'],
xl: ['16px'], xl: ['16px'],
'2xl': ['18px'], '2xl': ['18px'],
......
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