mirror of
https://github.com/primer/css.git
synced 2024-12-23 22:24:11 +03:00
Merge branch 'main' into link_color_inherit
This commit is contained in:
commit
c5001f550c
5
.changeset/polite-swans-push.md
Normal file
5
.changeset/polite-swans-push.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@primer/css': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Adding text-semibold and text-light utility classes
|
54
.github/workflows/labeler.yml
vendored
Normal file
54
.github/workflows/labeler.yml
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
name: Label
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label-release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v3
|
||||||
|
id: version-result
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
result-encoding: string
|
||||||
|
script: |
|
||||||
|
const diff_url = context.payload.pull_request.diff_url
|
||||||
|
const result = await github.request(diff_url)
|
||||||
|
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/m)]
|
||||||
|
if (match && match[0]) {
|
||||||
|
return match[0][1]
|
||||||
|
}
|
||||||
|
|
||||||
|
- uses: actions/github-script@v3
|
||||||
|
env:
|
||||||
|
RELEASE: ${{ steps.version-result.outputs.result }}
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
if (process.env.RELEASE == 'undefined') { return }
|
||||||
|
const issue = await github.issues.get({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number
|
||||||
|
})
|
||||||
|
const currentLabels = issue.data.labels.map( l => l.name)
|
||||||
|
const newLabel = `${process.env.RELEASE} release`
|
||||||
|
if (!currentLabels.includes(newLabel)) {
|
||||||
|
const otherReleaseLabels = currentLabels.filter( l => l.endsWith(' release'))
|
||||||
|
if (otherReleaseLabels.length) {
|
||||||
|
github.issues.removeLabel({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
name: [otherReleaseLabels]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
github.issues.addLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: [newLabel]
|
||||||
|
})
|
||||||
|
}
|
@ -93,6 +93,8 @@ Change the font weight, styles, and alignment with these utilities.
|
|||||||
<p class="text-normal">Normal</p>
|
<p class="text-normal">Normal</p>
|
||||||
<p class="text-italic">Italic</p>
|
<p class="text-italic">Italic</p>
|
||||||
<p class="text-bold">Bold</p>
|
<p class="text-bold">Bold</p>
|
||||||
|
<p class="text-semibold">Semi-bold</p>
|
||||||
|
<p class="text-light">Light</p>
|
||||||
<p class="text-uppercase">Uppercase</p>
|
<p class="text-uppercase">Uppercase</p>
|
||||||
<p class="no-wrap">No wrap</p>
|
<p class="no-wrap">No wrap</p>
|
||||||
<p class="ws-normal">Normal whitespace</p>
|
<p class="ws-normal">Normal whitespace</p>
|
||||||
|
@ -191,7 +191,9 @@
|
|||||||
/* Set the font weight to normal */
|
/* Set the font weight to normal */
|
||||||
.text-normal { font-weight: $font-weight-normal !important; }
|
.text-normal { font-weight: $font-weight-normal !important; }
|
||||||
/* Set the font weight to bold */
|
/* Set the font weight to bold */
|
||||||
.text-bold { font-weight: $font-weight-bold !important;}
|
.text-bold { font-weight: $font-weight-bold !important; }
|
||||||
|
.text-semibold { font-weight: $font-weight-semibold !important; }
|
||||||
|
.text-light { font-weight: $font-weight-light !important; }
|
||||||
/* Set the font to italic */
|
/* Set the font to italic */
|
||||||
.text-italic { font-style: italic !important; }
|
.text-italic { font-style: italic !important; }
|
||||||
/* Make text uppercase */
|
/* Make text uppercase */
|
||||||
|
Loading…
Reference in New Issue
Block a user