Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #136 from GovConnex/chore/radio-group-change-label
Browse files Browse the repository at this point in the history
chore: moved tailwind files and edited radio label
  • Loading branch information
dawntancarrasco authored Apr 16, 2024
2 parents 961c781 + f03c47e commit 4d4aa03
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ storybook-static

src/theming/tokens-style-dictionary
src/theming/tokens-output
src/tailwind/tokens-output

.env

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@govconnex/ui",
"version": "0.0.173",
"version": "0.0.174",
"description": "GovConnex UI - React Component Library",
"scripts": {
"build:tokens": "./tokens-build.sh",
Expand Down
12 changes: 12 additions & 0 deletions src/components/Radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ IconRadio.args = {
startAdornment: <Icon icon={faBook} />,
};

export const IconOnLabel = Template.bind({});

IconOnLabel.args = {
variant: "card",
label: (
<>
<Icon icon={faBook} /> Label
</>
),
description: "Description",
};

Example.parameters = {
// design: {
// type: "figma",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
/**
* renders a text label next to the radio
*/
label?: string;
label?: string | React.ReactNode;

/**
* renders a text bellow the label
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/theming/package.json → src/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "GovConnex UI - Tailwind Theme Config",
"main": "tailwind.config.js",
"scripts": {
"test": "tailwindcss -i ./tailwind-theme.css"
"test": "tailwindcss -i ./tailwind-theme.css",
"prepublishOnly": "cp -R ../theming/tokens-output tokens-output"
},
"files": [
"tailwind.config.js",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4d4aa03

Please sign in to comment.