Skip to content

Commit

Permalink
SUM-290: Replace "Hidden" class with "tw-hidden" (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese authored Nov 21, 2024
1 parent 3a988af commit 35ee55c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ const esLintConfig = tseslint.config(eslint.configs.recommended, ...tseslint.con
"@typescript-eslint/require-await": "off",
"no-console": ["error", { allow: ["warn", "error"] }],
"no-fallthrough": "off",
"no-restricted-syntax": ["error", "Literal[value=/text-m[\\d]/i]"],
"no-restricted-syntax": ["error", {
selector: "Literal[value=/text-m[\\d]/i]",
message: "Classes like text-m# are deprecated and should be replaced with text-#."
}, {
selector: "Literal[value=/(?<![^\\s])hidden/i]",
message: "Tailwind class 'hidden' conflicts with Slate embed code. Use tw-hidden instead."
}],
"prettier/prettier": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion src/components/global/page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PageHeader = async () => {
<div className="min-h-50 rs-py-2 centered pr-24 lg:pr-0">
<div className="flex w-full justify-between">
<Lockup />
<div className="hidden lg:flex">
<div className="tw-hidden lg:flex">
{primaryButton?.url && (
<Button href={primaryButton.url} secondary>
{primaryButton.title}
Expand Down
2 changes: 1 addition & 1 deletion src/components/layouts/interior-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const InteriorPage = async ({children, currentPath, menuItems, ...props}: Props)
return (
<div {...props} className={twMerge("centered flex gap-20", props.className)}>
{(subTree.length > 1 || subTree[0]?.children) && (
<aside className="hidden w-1/4 shrink-0 lg:block">
<aside className="tw-hidden w-1/4 shrink-0 lg:block">
<a href="#page-content" className="skiplink">
Skip secondary navigation
</a>
Expand Down

0 comments on commit 35ee55c

Please sign in to comment.