Skip to content

Commit 6eafdc8

Browse files
committed
styles(v2): update infima and fix styles
1 parent 60a4d1d commit 6eafdc8

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

CHANGELOG-2.x.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
- Fix search bar focus bug. When you put the focus on search input, previously the focus will remain although we have clicked to other area outside of the search input.
1010
- New themeConfig option `sidebarCollapsible`. It is on by default. If explicitly set to `false`, all doc items in sidebar is expanded. Otherwise, it will still be a collapsible sidebar.
1111
- Disable adding hashes to the generated class names of CSS modules in dev mode. Generating unique identifiers takes some time, which can be saved since including paths to files in class names is enough to avoid collisions.
12-
- Fix showing sidebar category with empty items.
12+
- Update infima from 0.2.0-alpha.2 to 0.2.0-alpha.3
13+
- Fix showing sidebar category with empty items.
14+
- Fix pagination nav and right sidebar color contrast ratio
15+
- Fix sidebar arrow color in dark mode
16+
- Fix footer mobile issue
17+
- etc
1318

1419
## 2.0.0-alpha.30
1520

packages/docusaurus-theme-classic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@mdx-js/react": "^1.5.1",
1313
"classnames": "^2.2.6",
1414
"clipboard": "^2.0.4",
15-
"infima": "0.2.0-alpha.2",
15+
"infima": "0.2.0-alpha.3",
1616
"prism-react-renderer": "^1.0.2",
1717
"react-toggle": "^4.1.1"
1818
},

packages/docusaurus-theme-classic/src/theme/Navbar/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ function Navbar() {
165165
</div>
166166
<div
167167
role="presentation"
168-
className="navbar__sidebar__backdrop"
168+
className="navbar-sidebar__backdrop"
169169
onClick={() => {
170170
setSidebarShown(false);
171171
}}
172172
/>
173-
<div className="navbar__sidebar">
174-
<div className="navbar__sidebar__brand">
173+
<div className="navbar-sidebar">
174+
<div className="navbar-sidebar__brand">
175175
<Link className="navbar__brand" onClick={hideSidebar} to={baseUrl}>
176176
{logo != null && (
177177
<img className="navbar__logo" src={logoUrl} alt={logo.alt} />
@@ -190,7 +190,7 @@ function Navbar() {
190190
/>
191191
)}
192192
</div>
193-
<div className="navbar__sidebar__items">
193+
<div className="navbar-sidebar__items">
194194
<div className="menu">
195195
<ul className="menu__list">
196196
{links.map((linkItem, i) => (

packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const Search = props => {
7676
placeholder="Search"
7777
aria-label="Search"
7878
className={classnames(
79+
'navbar__search-input',
7980
{'search-bar-expanded': props.isSearchBarExpanded},
8081
{'search-bar': !props.isSearchBarExpanded},
8182
)}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8419,10 +8419,10 @@ infer-owner@^1.0.3, infer-owner@^1.0.4:
84198419
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
84208420
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
84218421

8422-
8423-
version "0.2.0-alpha.2"
8424-
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.2.tgz#cfba3bcf5cd8f54cdfa47850d000ce6967a12c57"
8425-
integrity sha512-lCcCTjhQfjV/f1D34/T8BtjxslcLRxkUQdKoYv79CWk8OEPeEr24lyfVUhPyIJkgSeQZ35RSKam0GusIsxI++w==
8422+
8423+
version "0.2.0-alpha.3"
8424+
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.3.tgz#86c0bd9ee7a38e921bee0611970f1a7b71d69b32"
8425+
integrity sha512-3DusmJsdsaZeLYgcHubVQHqRht/0/evhfGaqQBcBgp/vnc7TEeoLUBREJTHMFdCoZUGDy2UfkNiMAwpUrVhyEg==
84268426

84278427
inflight@^1.0.4:
84288428
version "1.0.6"

0 commit comments

Comments
 (0)