fixed event-type buttons on mobile, added more font-cal classes (#764)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2021-09-24 11:28:57 +00:00
1 parent c152e43b82
commit bb1da8150f
7 files changed
+19 -11

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ export default function Modal(props: {
)}
</div>
<div className="mt-3 text-center sm:mt-5">
<Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
<Dialog.Title as="h3" className="font-cal text-lg leading-6 font-medium text-gray-900">
{props.heading}
</Dialog.Title>
<div className="mt-2">
+1 -1
View File
@@ -160,7 +160,7 @@ export default function Shell(props) {
<div className="py-8">
<div className="block sm:flex justify-between px-4 sm:px-6 md:px-8">
<div className="mb-8">
<h1 className="text-xl font-bold text-gray-900">{props.heading}</h1>
<h1 className="font-cal text-xl font-bold text-gray-900">{props.heading}</h1>
<p className="text-sm text-neutral-500 mr-4">{props.subtitle}</p>
</div>
<div className="mb-4 flex-shrink-0">{props.CTA}</div>
@@ -29,7 +29,9 @@ export default function ConfirmationDialogContent(props: PropsWithChildren<Confi
</div>
)}
<div>
<DialogPrimitive.Title className="text-xl font-bold text-gray-900">{title}</DialogPrimitive.Title>
<DialogPrimitive.Title className="font-cal text-xl font-bold text-gray-900">
{title}
</DialogPrimitive.Title>
<DialogPrimitive.Description className="text-neutral-500">{children}</DialogPrimitive.Description>
</div>
</div>
@@ -67,7 +67,9 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
className="flex-none inline mr-1.5 mt-0.5 h-4 w-4 text-neutral-400"
aria-hidden="true"
/>
<span>{eventType.description.substring(0, 100)}</span>
<span className="truncate max-w-[200px] sm:max-w-full">
{eventType.description.substring(0, 100)}
</span>
</li>
)}
</ul>
+1 -1
View File
@@ -4,7 +4,7 @@ import React from "react";
import { TextProps } from "../Text";
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
const classes = classnames("text-xl font-bold text-gray-900 dark:text-white", props?.className);
const classes = classnames("font-cal text-xl font-bold text-gray-900 dark:text-white", props?.className);
return <p className={classes}>{props?.text || props.children}</p>;
};