Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b513312
add button
lux-v Aug 12, 2025
eda6b3c
add button enums
lux-v Aug 12, 2025
c14365d
fix typo
lux-v Aug 13, 2025
08ec3f2
fix typo
lux-v Aug 13, 2025
6925708
Merge branch 'main' of https://github.com/funkhaus/ucla-library-websi…
lux-v Aug 15, 2025
84598a9
Update _button.scss
lux-v Aug 15, 2025
631c85b
adjust style import for Button.vue
lux-v Aug 15, 2025
cf50b59
Merge branch 'main' of https://github.com/lux-v/ucla-library-website-…
lux-v Sep 3, 2025
9dd8a0e
add lint fix
lux-v Sep 3, 2025
51ec7d5
add dlc theme
lux-v Sep 3, 2025
1a1c7ff
add packageManager for our storybook
lux-v Sep 3, 2025
6c2b67b
add package manager to root package
lux-v Sep 3, 2025
7b94cc0
Merge branch 'main' of https://github.com/funkhaus/ucla-library-websi…
lux-v Oct 28, 2025
3ce3ab1
remove packageManager
lux-v Oct 28, 2025
9866fdb
dummy
lux-v Oct 28, 2025
04f3b95
Merge branch 'main' of https://github.com/funkhaus/ucla-library-websi…
lux-v Nov 3, 2025
242f9b2
Merge branch 'main' of https://github.com/funkhaus/ucla-library-websi…
lux-v Nov 11, 2025
93ae545
fix: remove old button
lux-v Nov 11, 2025
ad0be97
feat: add DLC for button-link
lux-v Nov 11, 2025
ae8d8f6
feat: lint fix
lux-v Nov 11, 2025
cf1eaba
feat: adjust min height for button secondary
lux-v Nov 11, 2025
ec0a318
fix: font-weight for DLC theme
lux-v Nov 11, 2025
b91e46c
Merge branch 'main' into button
pghorpade Nov 12, 2025
694d272
Merge branch 'main' of https://github.com/funkhaus/ucla-library-websi…
lux-v Nov 13, 2025
d6becfc
Delete NOTES.md
lux-v Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions NOTES.md

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@
},
"engines": {
"pnpm": "^9.12.1"
},
"packageManager": "[email protected]"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,5 @@ const parsedIconName = computed(() => {
<style lang="scss" scoped>
@import "@/styles/default/_button-link.scss";
@import "@/styles/ftva/_button-link.scss";
@import "@/styles/dlc/_button-link.scss";
</style>
26 changes: 26 additions & 0 deletions packages/vue-component-library/src/stories/ButtonLink.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,29 @@ export function FTVATertiary() {
'<button-link label="FTVA Tertiary" :isTertiary="true" icon-name="none" to=\'www.google.com\'/>',
}
}

export function DLCPrimary() {
return {
components: { ButtonLink },
provide() {
return {
theme: computed(() => 'dlc'),
}
},
template:
'<button-link label="Back to Search Results" icon-name="none" to=\'https://www.google.com\'/>',
}
}

export function DLCSecondary() {
return {
components: { ButtonLink },
provide() {
return {
theme: computed(() => 'dlc'),
}
},
template:
'<button-link label="Available for Download" :isSecondary="true" :is-download="true" to=\'/help/more\'/>',
}
}
62 changes: 62 additions & 0 deletions packages/vue-component-library/src/styles/dlc/_button-link.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
.dlc.button-link {
--transition-duration: 0.3s;
.hover {
display: none;
}
.arrow {
display: none;
}

padding: 10px 15px;
border-radius: 30px;
background-color: $subtitle-grey;

font-size: 15px;
font-family: var(--font-primary);
font-weight: 500;
line-height: 1;
color: var(--color-white);
outline: none;
border: 1px solid $subtitle-grey;
min-height: 38px;

transition: background-color var(--transition-duration) ease-out,
color var(--transition-duration) ease-out,
border-color var(--transition-duration) ease-out;

// Remove padding from first child
*:not(:only-child):first-child {
padding-left: 0px;
}

// Secondary variant
&.is-secondary {
padding: 8px 20px;
border-radius: 5px;

background-color: transparent;
border: 1px solid $accent-blue;
color: $accent-blue;

font-size: 18px;
font-family: var(--font-primary);
font-weight: 500;
line-height: 1;
min-height: 35px;
}

// Hovers
@media #{$has-hover} {
&:hover {
background-color: var(--color-secondary-blue-01);
border-color: var(--color-secondary-blue-01);

// Secondary variant hover
&.is-secondary {
background-color: $accent-blue;
border-color: $accent-blue;
color: var(--color-white);
}
}
}
}
Loading