Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to Primer View Components v0.0.117 #2351

Merged
merged 3 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/strange-tables-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Updating to primer view components 0.0.117
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"@primer/primitives": "^7.9.0",
"@primer/view-components": "^0.0.115"
"@primer/view-components": "^0.0.117"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.6",
Expand Down
2 changes: 1 addition & 1 deletion src/labels/states.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/view-components/app/components/primer/state_component';
@import '@primer/view-components/app/components/primer/beta/state';
61 changes: 1 addition & 60 deletions src/links/link.scss
Original file line number Diff line number Diff line change
@@ -1,60 +1 @@
// Links

.Link {
color: var(--color-accent-fg);

&:hover {
text-decoration: underline;
cursor: pointer;
}

&:focus,
&:focus-visible {
outline-offset: 0;
}
}

.Link--primary {
color: var(--color-fg-default) !important;

&:hover {
color: var(--color-accent-fg) !important;
}
}

.Link--secondary {
color: var(--color-fg-muted) !important;

&:hover {
color: var(--color-accent-fg) !important;
}
}

.Link--muted {
color: var(--color-fg-muted) !important;

&:hover {
color: var(--color-accent-fg) !important;
text-decoration: none;
}
}

// Set the link color only on hover
// Useful when you want only part of a link to turn blue on hover
.Link--onHover {
&:hover {
color: var(--color-accent-fg) !important;
text-decoration: underline;
cursor: pointer;
}
}

// When using a color utility class inside of a link class,
// color should change with link on hover.
.Link--secondary,
.Link--primary,
.Link--muted {
&:hover [class*='color-fg'] {
color: inherit !important;
}
}
@import '@primer/view-components/app/components/primer/beta/link';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. ✨

2 changes: 1 addition & 1 deletion src/subhead/subhead.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/view-components/app/components/primer/subhead_component';
@import '@primer/view-components/app/components/primer/beta/subhead';
2 changes: 1 addition & 1 deletion src/timeline/timeline-item.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/view-components/app/components/primer/timeline_item_component';
@import '@primer/view-components/app/components/primer/beta/timeline_item';
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,9 @@
integrity sha512-ZOJ+U771Mw68qp2GPbcqPt2Xg0LEl0YwiIFHXwVLAFm2TgDnsgcCHhXO8PIxOWPqSFO4S7xIMD9CBobfaWGASA==

"@github/relative-time-element@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@github/relative-time-element/-/relative-time-element-4.0.0.tgz#18ca051f0385142e8c13096cd57e8637012c99ef"
integrity sha512-A//nGe6GFciGP0GxSZZKZbULwSZuENZ19cTaAkvRU3Ptqgdpo95VF6YS5TPi54NVM/zt8q6KtDTOMyjdFQHj0g==
version "4.1.5"
resolved "https://registry.yarnpkg.com/@github/relative-time-element/-/relative-time-element-4.1.5.tgz#4eaa3707568696661eae1dbe1d134fa2ffde1121"
integrity sha512-WAf1EQV5Sn6jGuAIQur/ztKlEV9R+VHDNwqEbeaOb6s9fiwM5z7+ujlWNZtgFkDp3lF0H8D/f0vdiPlfHz0ZTQ==

"@github/tab-container-element@^3.1.2":
version "3.2.0"
Expand Down Expand Up @@ -1210,10 +1210,10 @@
stylelint-scss "^4.0.0"
tap-map "^1.0.0"

"@primer/view-components@^0.0.115":
version "0.0.115"
resolved "https://registry.yarnpkg.com/@primer/view-components/-/view-components-0.0.115.tgz#79f36c14327742c6eac1b73ff2eb3bb5206984fa"
integrity sha512-Qo6vNE0/UK6azsu9wTpb9AneHpM2FkA/saZ6UB1kvRttD5M0d/xto8sqq6b45QkKukqIlS4MhzyyvLIvC6rI1g==
"@primer/view-components@^0.0.117":
version "0.0.117"
resolved "https://registry.yarnpkg.com/@primer/view-components/-/view-components-0.0.117.tgz#bb077f8233b5e6562ea8617f7e90b92559896012"
integrity sha512-srCp6BeSaCSELxvD6P+xp8/NGtiHoj9iY4y9duI1SS5wdc11JtaCXm5Iq/8SQaFZ9ONaIQnyeAveSuUCE7Jb8A==
dependencies:
"@github/auto-check-element" "^5.2.0"
"@github/auto-complete-element" "^3.3.4"
Expand Down