chore(v2): update infima to alpha 26 (#5001)

This commit is contained in:
Alexey Pyltsyn 2021-06-18 16:03:51 +03:00 committed by GitHub
parent 0e652730d4
commit 7dc9fe839b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 23 deletions

View file

@ -39,7 +39,7 @@
"copy-text-to-clipboard": "^3.0.1", "copy-text-to-clipboard": "^3.0.1",
"fs-extra": "^10.0.0", "fs-extra": "^10.0.0",
"globby": "^11.0.2", "globby": "^11.0.2",
"infima": "0.2.0-alpha.24", "infima": "0.2.0-alpha.26",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"parse-numeric-range": "^1.2.0", "parse-numeric-range": "^1.2.0",
"postcss": "^8.2.15", "postcss": "^8.2.15",

View file

@ -45,7 +45,7 @@ function AnnouncementBar(): JSX.Element | null {
{isCloseable ? ( {isCloseable ? (
<button <button
type="button" type="button"
className={styles.announcementBarClose} className={clsx(styles.announcementBarClose, 'clean-btn')}
onClick={closeAnnouncementBar} onClick={closeAnnouncementBar}
aria-label={translate({ aria-label={translate({
id: 'theme.AnnouncementBar.closeButtonAriaLabel', id: 'theme.AnnouncementBar.closeButtonAriaLabel',

View file

@ -36,11 +36,6 @@
top: 0; top: 0;
width: 55px; width: 55px;
font-size: 1.25rem; font-size: 1.25rem;
padding: 0;
border: none;
cursor: pointer;
background: none;
color: inherit;
height: 100%; height: 100%;
} }

View file

@ -90,9 +90,9 @@ function BlogPostItem(props: Props): JSX.Element {
<div className="avatar__intro"> <div className="avatar__intro">
{author && ( {author && (
<> <>
<h4 className="avatar__name"> <div className="avatar__name">
<Link href={authorURL}>{author}</Link> <Link href={authorURL}>{author}</Link>
</h4> </div>
<small className="avatar__subtitle">{authorTitle}</small> <small className="avatar__subtitle">{authorTitle}</small>
</> </>
)} )}

View file

@ -245,7 +245,7 @@ export default function CodeBlock({
message: 'Copy code to clipboard', message: 'Copy code to clipboard',
description: 'The ARIA label for copy code blocks button', description: 'The ARIA label for copy code blocks button',
})} })}
className={clsx(styles.copyButton)} className={clsx(styles.copyButton, 'clean-btn')}
onClick={handleCopyCode}> onClick={handleCopyCode}>
{showCopied ? ( {showCopied ? (
<Translate <Translate

View file

@ -35,10 +35,8 @@
.copyButton { .copyButton {
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
border: none;
border-radius: var(--ifm-global-radius); border-radius: var(--ifm-global-radius);
color: var(--ifm-color-white); color: var(--ifm-color-white);
cursor: pointer;
opacity: 0; opacity: 0;
user-select: none; user-select: none;
padding: 0.4rem 0.5rem; padding: 0.4rem 0.5rem;

View file

@ -88,7 +88,7 @@ function Navbar(): JSX.Element {
{items != null && items.length !== 0 && ( {items != null && items.length !== 0 && (
<button <button
aria-label="Navigation bar toggle" aria-label="Navigation bar toggle"
className="navbar__toggle" className="navbar__toggle clean-btn"
type="button" type="button"
tabIndex={0} tabIndex={0}
onClick={showSidebar} onClick={showSidebar}

View file

@ -6,6 +6,7 @@
*/ */
import React, {useRef} from 'react'; import React, {useRef} from 'react';
import clsx from 'clsx';
import Translate from '@docusaurus/Translate'; import Translate from '@docusaurus/Translate';
import {useChangeRoute} from '@docusaurus/theme-common'; import {useChangeRoute} from '@docusaurus/theme-common';
@ -39,7 +40,10 @@ function SkipToContent(): JSX.Element {
return ( return (
<div ref={containerRef}> <div ref={containerRef}>
<a href="#main" className={styles.skipToContent} onClick={handleSkip}> <a
href="#main"
className={clsx(styles.skipToContent, 'shadow--md')}
onClick={handleSkip}>
<Translate <Translate
id="theme.common.skipToMainContent" id="theme.common.skipToMainContent"
description="The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"> description="The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation">

View file

@ -6,9 +6,6 @@
padding: calc(var(--ifm-global-spacing) / 2) var(--ifm-global-spacing); padding: calc(var(--ifm-global-spacing) / 2) var(--ifm-global-spacing);
color: var(--ifm-color-emphasis-900); color: var(--ifm-color-emphasis-900);
background-color: var(--ifm-background-surface-color); background-color: var(--ifm-background-surface-color);
border-radius: var(--ifm-global-radius);
font: inherit;
border: none;
} }
.skipToContent:focus { .skipToContent:focus {

View file

@ -51,7 +51,7 @@ const ShowcaseCard = memo(function ({user}) {
<div className="avatar__intro margin-left--none"> <div className="avatar__intro margin-left--none">
<div className={styles.titleIconsRow}> <div className={styles.titleIconsRow}>
<div className={styles.titleIconsRowTitle}> <div className={styles.titleIconsRowTitle}>
<h4 className="avatar__name">{user.title}</h4> <div className="avatar__name">{user.title}</div>
</div> </div>
<div className={styles.titleIconsRowIcons}> <div className={styles.titleIconsRowIcons}>
<ShowcaseCardTagIcons tags={user.tags} /> <ShowcaseCardTagIcons tags={user.tags} />

View file

@ -255,7 +255,7 @@ function Home() {
style={{overflow: 'hidden'}} style={{overflow: 'hidden'}}
/> />
<div className="avatar__intro padding-top--sm"> <div className="avatar__intro padding-top--sm">
<h4 className="avatar__name">{quote.name}</h4> <div className="avatar__name">{quote.name}</div>
<small className="avatar__subtitle">{quote.title}</small> <small className="avatar__subtitle">{quote.title}</small>
</div> </div>
</div> </div>

View file

@ -10470,10 +10470,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" resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
infima@0.2.0-alpha.24: infima@0.2.0-alpha.26:
version "0.2.0-alpha.24" version "0.2.0-alpha.26"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.24.tgz#95fd25d9eb825a2844bae768704385c95548c15d" resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.26.tgz#8582d40ef01a09dbbde8f0e574f8c61d6bc0992b"
integrity sha512-2GX1Qcj2yQOOfs6y9ie788Njroo9MbY2Mkm+QxaEzgrAE7AqGjhF6dMyjMvzhl+NS1JqoJHn3N5kM0P3AOHvuA== integrity sha512-0/Dt+89mf8xW+9/hKGmynK+WOAsiy0QydVJL0qie6WK57yGIQv+SjJrhMybKndnmkZBQ+Vlt0tWPnTakx8X2Qw==
inflight@^1.0.4: inflight@^1.0.4:
version "1.0.6" version "1.0.6"