Skip to content

Commit

Permalink
style: Added Anchor styling (#5954)
Browse files Browse the repository at this point in the history
* style: Created Anchor styling (#5933)

* fix: Changed css import

* refactor: Rename export to Anchor

* fix(base.css): Added more anchor specifiers
  • Loading branch information
byt3h3ad authored Oct 3, 2023
1 parent 20aaab8 commit 26c0976
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions components/__design__/text.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Meta as MetaObj, StoryObj } from '@storybook/react';

export const Anchor: StoryObj = {
render: () => (
<div>
<p>
The current Node.js security policy can be found at{' '}
<a href="https://github.com/nodejs/node/blob/HEAD/SECURITY.md#security">
https://github.com/nodejs/node/blob/HEAD/SECURITY.md#security
</a>
, including information on how to report a vulnerability in Node.js.
Subscribe to the low-volume announcement-only nodejs-sec mailing list at{' '}
<a href="https://groups.google.com/forum/#!forum/nodejs-sec">
https://groups.google.com/forum/#!forum/nodejs-sec
</a>{' '}
to stay up to date on security vulnerabilities and security-related
releases of Node.js and the projects maintained in the nodejs GitHub
organization.
</p>
</div>
),
};

export default { title: 'Design System' } as MetaObj;
6 changes: 6 additions & 0 deletions styles/new/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a,
a:link,
a:visited {
@apply text-green-600
dark:text-green-400;
}
1 change: 1 addition & 0 deletions styles/new/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

@import './mixins';
@import './base';

@tailwind base;
@tailwind components;
Expand Down

0 comments on commit 26c0976

Please sign in to comment.