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

Migrate MenuSection to tailwind

parent 78d259c0
......@@ -28,8 +28,12 @@ import { toChildArray } from 'preact';
export default function MenuSection({ heading, children }) {
return (
<>
{heading && <h2 className="MenuSection__heading">{heading}</h2>}
<ul className="MenuSection__content">
{heading && (
<h2 className="text-color-text-light p-3 leading-none uppercase">
{heading}
</h2>
)}
<ul className="border-b">
{toChildArray(children).map(child => (
<li key={/** @type {JSXElement} **/ (child).key}>{child}</li>
))}
......
@use '../../variables' as var;
@use '../../mixins/utils';
.MenuSection__content {
@include utils.border--bottom;
}
.MenuSection__heading {
color: var.$color-text--light;
line-height: 1;
margin: 1px 1px 0;
margin-bottom: 10px;
padding: 12px 10px 0;
text-transform: uppercase;
}
......@@ -13,7 +13,6 @@
@use './GroupList';
@use './GroupListItem';
@use './Menu';
@use './MenuSection';
@use './StyledText';
// TODO: Evaluate all classes below after components have been converted to
......
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