Commit 4f3f3014 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Use `rounded` instead of `rounded-sm`

In component styles where the intent is to match the default border
radius sizing, use unqualified `rounded` instead of `rounded-sm`. The
default border radius happens to be 2px, which is equivalent to the
default `rounded-sm` value out of the box with Tailwind, but the intent
is instead "use the default border radius size".

Add a border-radius default to tailwind config.
parent e14e8d5e
...@@ -186,7 +186,7 @@ function TextArea({ ...@@ -186,7 +186,7 @@ function TextArea({
return ( return (
<textarea <textarea
className={classnames( className={classnames(
'border rounded-sm p-2', 'border rounded p-2',
'text-color-text-light bg-grey-0', 'text-color-text-light bg-grey-0',
'focus:bg-white focus:outline-none focus:shadow-focus-inner', 'focus:bg-white focus:outline-none focus:shadow-focus-inner',
classes classes
......
...@@ -194,7 +194,7 @@ export default function Menu({ ...@@ -194,7 +194,7 @@ export default function Menu({
aria-haspopup={true} aria-haspopup={true}
className={classnames( className={classnames(
'focus-visible-ring', 'focus-visible-ring',
'flex items-center justify-center rounded-sm transition-colors', 'flex items-center justify-center rounded transition-colors',
{ {
'text-grey-7 hover:text-grey-9': !isOpen, 'text-grey-7 hover:text-grey-9': !isOpen,
'text-brand': isOpen, 'text-brand': isOpen,
......
...@@ -22,7 +22,7 @@ export default function TagListItem({ ...@@ -22,7 +22,7 @@ export default function TagListItem({
tag, tag,
}: TagListItemProps) { }: TagListItemProps) {
return ( return (
<li className="flex items-center border rounded-sm bg-grey-0"> <li className="flex items-center border rounded bg-grey-0">
<div className="grow px-1.5 py-1 touch:p-2"> <div className="grow px-1.5 py-1 touch:p-2">
{href ? ( {href ? (
<Link <Link
...@@ -54,7 +54,7 @@ export default function TagListItem({ ...@@ -54,7 +54,7 @@ export default function TagListItem({
// Rounded border to match container edges and make keyboard focus // Rounded border to match container edges and make keyboard focus
// ring shape conform. Turn off left side // ring shape conform. Turn off left side
// border radius to maintain a straight dividing line // border radius to maintain a straight dividing line
'border-l rounded-sm rounded-l-none', 'border-l rounded rounded-l-none',
'text-grey-6 hover:text-color-text hover:bg-grey-2', 'text-grey-6 hover:text-color-text hover:bg-grey-2',
// Emulates transitions on *Button shared component styling // Emulates transitions on *Button shared component styling
'transition-colors duration-200', 'transition-colors duration-200',
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
// Ensure the tag has width in order for :focus styling to render correctly. // Ensure the tag has width in order for :focus styling to render correctly.
@apply inline-block; @apply inline-block;
// Give links a radius to allow :focus styling to appear similar to that of buttons // Give links a radius to allow :focus styling to appear similar to that of buttons
@apply rounded-sm; @apply rounded;
@apply text-brand no-underline; @apply text-brand no-underline;
} }
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
} }
pre code { pre code {
@apply block p-3 bg-grey-1 rounded-sm overflow-scroll; @apply block p-3 bg-grey-1 rounded overflow-scroll;
} }
a { a {
......
...@@ -26,12 +26,8 @@ export default { ...@@ -26,12 +26,8 @@ export default {
'slide-in-from-right': 'slide-in-from-right 0.3s forwards ease-in-out', 'slide-in-from-right': 'slide-in-from-right 0.3s forwards ease-in-out',
}, },
borderRadius: { borderRadius: {
// Tailwind provides a default set of border-radius utility styles // Equivalent to tailwind default `rounded-sm` size
// in rem units. Add some values for places where border radius needs DEFAULT: '0.125rem',
// to be a fixed size and not scale with changes to root font size
// example: bucket bar indicator buttons
'px-sm': '2px',
px: '4px',
}, },
boxShadow: { boxShadow: {
'adder-toolbar': '0px 2px 10px 0px rgba(0, 0, 0, 0.25)', 'adder-toolbar': '0px 2px 10px 0px rgba(0, 0, 0, 0.25)',
...@@ -232,8 +228,8 @@ export default { ...@@ -232,8 +228,8 @@ export default {
}, },
// Tailwind does not provide this specific break utility: https://tailwindcss.com/docs/word-break // Tailwind does not provide this specific break utility: https://tailwindcss.com/docs/word-break
'.break-anywhere': { '.break-anywhere': {
'overflow-wrap': 'anywhere' 'overflow-wrap': 'anywhere',
} },
}); });
addComponents({ addComponents({
// Add a custom class to set all properties to initial values. Used // Add a custom class to set all properties to initial values. Used
......
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