Skip to content

Commit

Permalink
feat(components): add tertiary intent to Button
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Jan 30, 2024
1 parent 190ec30 commit e97e537
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"scripts": {
"_commit": "cz",
"build": "vite build && vue-tsc && npm run badges:build",
"build:watch": "npm run build -- --watch",
"build:watch": "vite build && vue-tsc --watch",
"ci": "npm run clean && npm ci",
"clean": "run-p clean:*",
"clean:deps": "rimraf node_modules",
Expand Down Expand Up @@ -138,4 +138,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
10 changes: 9 additions & 1 deletion src/components/Button/PdapButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const classes = reactive({
@layer components {
.pdap-button {
@apply cursor-pointer border-2 border-brand-gold decoration-0 disabled:opacity-50 font-semibold inline-block mx-1 px-6 py-2 rounded-none text-center text-lg w-full;
@apply cursor-pointer border-2 border-brand-gold decoration-0 disabled:opacity-50 font-semibold inline-block px-6 py-2 rounded-none text-center text-lg w-full;
@apply hover:brightness-85 lg:text-xl sm:max-w-max;
}
Expand All @@ -49,5 +49,13 @@ const classes = reactive({
.pdap-button-secondary[type='submit'] {
@apply bg-transparent;
}
.pdap-button-tertiary {
@apply pdap-button bg-transparent border-2 border-transparent text-neutral-950;
}
.pdap-button-tertiary[type='submit'] {
@apply bg-transparent;
}
}
</style>
2 changes: 1 addition & 1 deletion src/components/Button/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface PdapButtonProps {
intent?: 'primary' | 'secondary';
intent?: 'primary' | 'secondary' | 'tertiary';
isLoading?: boolean;
}

0 comments on commit e97e537

Please sign in to comment.