typography fixes (#1163)

This commit is contained in:
Ciarán Hanrahan authored and GitHub committed 2021-11-10 23:18:39 +00:00
1 parent 87b2ecec26
commit 16fba702fb
5 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
size === "sm" && "px-3 py-2 text-sm leading-4 font-medium rounded-sm",
size === "base" && "px-3 py-2 text-sm font-medium rounded-sm",
size === "lg" && "px-4 py-2 text-base font-medium rounded-sm",
size === "icon" && "group p-2 border border-transparent text-neutral-400 hover:border-gray-200",
size === "icon" &&
"group p-2 border rounded-sm border-transparent text-neutral-400 hover:border-gray-200 transition",
// turn button into a floating action button (fab)
size === "fab" ? "fixed" : "relative",
size === "fab" && "justify-center bottom-20 right-8 rounded-full p-4 w-14 h-14",
+3 -3
View File
@@ -139,12 +139,12 @@ const ScheduleBlock = ({ name, day, weekday }: ScheduleBlockProps) => {
onChange={(e) => (e.target.checked ? replace([defaultDayRange]) : replace([]))}
className="inline-block border-gray-300 rounded-sm focus:ring-neutral-500 text-neutral-900"
/>
<span className="inline-block capitalize">{weekday}</span>
<span className="text-sm inline-block capitalize">{weekday}</span>
</label>
</div>
<div className="flex-grow">
{fields.map((field, index) => (
<div key={field.id} className="flex justify-between mb-2">
<div key={field.id} className="flex justify-between mb-1">
<div className="flex items-center space-x-2">
<TimeRangeField name={`${name}.${day}.${index}`} />
</div>
@@ -157,7 +157,7 @@ const ScheduleBlock = ({ name, day, weekday }: ScheduleBlockProps) => {
/>
</div>
))}
{!fields.length && t("no_availability")}
<span className="text-sm block text-gray-500">{!fields.length && t("no_availability")}</span>
</div>
<div>
<Button