Skip to content

Commit

Permalink
chore(v2): upgrade Infima to 0.2.0-alpha.10 (#2729)
Browse files Browse the repository at this point in the history
* chore(v2): upgrade Infima to 0.2.0-alpha.10

* Changelog
  • Loading branch information
lex111 authored May 10, 2020
1 parent afe70d9 commit 93b39e6
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 25 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG-2.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Docusaurus 2 Changelog

## 2.0.0-alpha.55

#### :boom: Breaking Change

- `infima`
- The following Infima classes have been renamed for consistency:

- `page-item``pagination__item`
- `pagination-nav__link--label``pagination-nav__label`
- `pagination-nav__link--sublabel``pagination-nav__sublabel`
- `tab-item``tabs__item`
- `tab-item--active``tabs__item--active`

If you have swizzled components, you need to replace these class names.

## 2.0.0-alpha.54

**HOTFIX for 2.0.0-alpha.53**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ function BlogListPaginator(props) {
aria-label="Blog list page navigation"
className="my-5 col col-xl-4 offset-xl-4 col-xs-6">
<ul className="pagination justify-content-between">
<li className="page-item">
<li className="pagination__item">
{previousPage && (
<Link className="page-link rounded-pill" to={previousPage}>
Older
</Link>
)}
</li>
<li className="page-item">
<li className="pagination__item">
{nextPage && (
<Link className="page-link rounded-pill" to={nextPage}>
Newer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ function BlogPostPaginator(props) {
return (
<nav aria-label="Blog post page navigation" className="my-5">
<ul className="pagination justify-content-between">
<li className="page-item">
<li className="pagination__item">
{prevItem && (
<Link className="page-link rounded-pill" to={prevItem.permalink}>
&laquo; {prevItem.title}
</Link>
)}
</li>
<li className="page-item">
<li className="pagination__item">
{nextItem && (
<Link className="page-link rounded-pill" to={nextItem.permalink}>
{nextItem.title} &raquo;
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@mdx-js/react": "^1.5.8",
"classnames": "^2.2.6",
"clipboard": "^2.0.6",
"infima": "0.2.0-alpha.9",
"infima": "0.2.0-alpha.10",
"parse-numeric-range": "^0.0.2",
"prism-react-renderer": "^1.1.0",
"prismjs": "^1.20.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ function BlogListPaginator(props) {
<div className="pagination-nav__item">
{previousPage && (
<Link className="pagination-nav__link" to={previousPage}>
<h4 className="pagination-nav__link--label">
&laquo; Newer Entries
</h4>
<h4 className="pagination-nav__label">&laquo; Newer Entries</h4>
</Link>
)}
</div>
<div className="pagination-nav__item pagination-nav__item--next">
{nextPage && (
<Link className="pagination-nav__link" to={nextPage}>
<h4 className="pagination-nav__link--label">
Older Entries &raquo;
</h4>
<h4 className="pagination-nav__label">Older Entries &raquo;</h4>
</Link>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function BlogPostPaginator(props) {
<div className="pagination-nav__item">
{prevItem && (
<Link className="pagination-nav__link" to={prevItem.permalink}>
<div className="pagination-nav__link--sublabel">Previous Post</div>
<div className="pagination-nav__link--label">
<div className="pagination-nav__sublabel">Previous Post</div>
<div className="pagination-nav__label">
&laquo; {prevItem.title}
</div>
</Link>
Expand All @@ -26,8 +26,8 @@ function BlogPostPaginator(props) {
<div className="pagination-nav__item pagination-nav__item--next">
{nextItem && (
<Link className="pagination-nav__link" to={nextItem.permalink}>
<div className="pagination-nav__link--sublabel">Next Post</div>
<div className="pagination-nav__link--label">
<div className="pagination-nav__sublabel">Next Post</div>
<div className="pagination-nav__label">
{nextItem.title} &raquo;
</div>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function DocPaginator(props) {
<Link
className="pagination-nav__link"
to={metadata.previous.permalink}>
<div className="pagination-nav__link--sublabel">Previous</div>
<div className="pagination-nav__link--label">
<div className="pagination-nav__sublabel">Previous</div>
<div className="pagination-nav__label">
&laquo; {metadata.previous.title}
</div>
</Link>
Expand All @@ -28,8 +28,8 @@ function DocPaginator(props) {
<div className="pagination-nav__item pagination-nav__item--next">
{metadata.next && (
<Link className="pagination-nav__link" to={metadata.next.permalink}>
<div className="pagination-nav__link--sublabel">Next</div>
<div className="pagination-nav__link--label">
<div className="pagination-nav__sublabel">Next</div>
<div className="pagination-nav__label">
{metadata.next.title} &raquo;
</div>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-classic/src/theme/Tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function Tabs(props) {
role="tab"
tabIndex="0"
aria-selected={selectedValue === value}
className={classnames('tab-item', styles.tabItem, {
'tab-item--active': selectedValue === value,
className={classnames('tabs__item', styles.tabItem, {
'tabs__item--active': selectedValue === value,
})}
key={value}
ref={(tabControl) => tabRefs.push(tabControl)}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8691,10 +8691,10 @@ infer-owner@^1.0.3, infer-owner@^1.0.4:
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==

infima@0.2.0-alpha.9:
version "0.2.0-alpha.9"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.9.tgz#2eea70b1571c8f55847e3f305ebd10814d2d09cf"
integrity sha512-EXsGm6WhsabOangUkHyTx1qfKJdHF3Q9na/hJe387ytOkWu/phwjsA7T/C6b2KeRTdZl/DO1tFZsFc2+Qnif7A==
infima@0.2.0-alpha.10:
version "0.2.0-alpha.10"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.10.tgz#935aab3e7991fe746a942849f0e62f70c5be09e9"
integrity sha512-6Q+KXPhV8mve76segJpmdspV7pmRdKfK5mHllew+mjtRuQxDUivd3oaZjdIe6Y8SSCammnJqJox3orpSnc7QDQ==

inflight@^1.0.4:
version "1.0.6"
Expand Down

0 comments on commit 93b39e6

Please sign in to comment.