mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
refactor(v2): replace strong with b in UI components (#4916)
This commit is contained in:
parent
2303d6557b
commit
df19bbd145
4 changed files with 10 additions and 10 deletions
|
@ -109,13 +109,13 @@ function BlogPostItem(props: Props): JSX.Element {
|
||||||
<footer className="row margin-vert--lg">
|
<footer className="row margin-vert--lg">
|
||||||
{tags.length > 0 && (
|
{tags.length > 0 && (
|
||||||
<div className="col">
|
<div className="col">
|
||||||
<strong>
|
<b>
|
||||||
<Translate
|
<Translate
|
||||||
id="theme.tags.tagsListLabel"
|
id="theme.tags.tagsListLabel"
|
||||||
description="The label alongside a tag list">
|
description="The label alongside a tag list">
|
||||||
Tags:
|
Tags:
|
||||||
</Translate>
|
</Translate>
|
||||||
</strong>
|
</b>
|
||||||
{tags.map(({label, permalink: tagPermalink}) => (
|
{tags.map(({label, permalink: tagPermalink}) => (
|
||||||
<Link
|
<Link
|
||||||
key={tagPermalink}
|
key={tagPermalink}
|
||||||
|
@ -131,13 +131,13 @@ function BlogPostItem(props: Props): JSX.Element {
|
||||||
<Link
|
<Link
|
||||||
to={metadata.permalink}
|
to={metadata.permalink}
|
||||||
aria-label={`Read more about ${title}`}>
|
aria-label={`Read more about ${title}`}>
|
||||||
<strong>
|
<b>
|
||||||
<Translate
|
<Translate
|
||||||
id="theme.blog.post.readMore"
|
id="theme.blog.post.readMore"
|
||||||
description="The label used in blog post item excerpts to link to full blog posts">
|
description="The label used in blog post item excerpts to link to full blog posts">
|
||||||
Read More
|
Read More
|
||||||
</Translate>
|
</Translate>
|
||||||
</strong>
|
</b>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -29,7 +29,7 @@ function UnreleasedVersionLabel({
|
||||||
description="The label used to tell the user that he's browsing an unreleased doc version"
|
description="The label used to tell the user that he's browsing an unreleased doc version"
|
||||||
values={{
|
values={{
|
||||||
siteTitle,
|
siteTitle,
|
||||||
versionLabel: <strong>{versionLabel}</strong>,
|
versionLabel: <b>{versionLabel}</b>,
|
||||||
}}>
|
}}>
|
||||||
{
|
{
|
||||||
'This is unreleased documentation for {siteTitle} {versionLabel} version.'
|
'This is unreleased documentation for {siteTitle} {versionLabel} version.'
|
||||||
|
@ -51,7 +51,7 @@ function UnmaintainedVersionLabel({
|
||||||
description="The label used to tell the user that he's browsing an unmaintained doc version"
|
description="The label used to tell the user that he's browsing an unmaintained doc version"
|
||||||
values={{
|
values={{
|
||||||
siteTitle,
|
siteTitle,
|
||||||
versionLabel: <strong>{versionLabel}</strong>,
|
versionLabel: <b>{versionLabel}</b>,
|
||||||
}}>
|
}}>
|
||||||
{
|
{
|
||||||
'This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.'
|
'This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.'
|
||||||
|
@ -76,7 +76,7 @@ function LatestVersionSuggestionLabel({
|
||||||
values={{
|
values={{
|
||||||
versionLabel,
|
versionLabel,
|
||||||
latestVersionLink: (
|
latestVersionLink: (
|
||||||
<strong>
|
<b>
|
||||||
<Link to={to} onClick={onClick}>
|
<Link to={to} onClick={onClick}>
|
||||||
<Translate
|
<Translate
|
||||||
id="theme.docs.versions.latestVersionLinkLabel"
|
id="theme.docs.versions.latestVersionLinkLabel"
|
||||||
|
@ -84,7 +84,7 @@ function LatestVersionSuggestionLabel({
|
||||||
latest version
|
latest version
|
||||||
</Translate>
|
</Translate>
|
||||||
</Link>
|
</Link>
|
||||||
</strong>
|
</b>
|
||||||
),
|
),
|
||||||
}}>
|
}}>
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,7 +46,7 @@ function LastUpdatedByUser({
|
||||||
id="theme.lastUpdated.byUser"
|
id="theme.lastUpdated.byUser"
|
||||||
description="The words used to describe by who the page has been last updated"
|
description="The words used to describe by who the page has been last updated"
|
||||||
values={{
|
values={{
|
||||||
user: <strong>{lastUpdatedBy}</strong>,
|
user: <b>{lastUpdatedBy}</b>,
|
||||||
}}>
|
}}>
|
||||||
{' by {user}'}
|
{' by {user}'}
|
||||||
</Translate>
|
</Translate>
|
||||||
|
|
|
@ -40,7 +40,7 @@ const Logo = (props: Props): JSX.Element => {
|
||||||
alt={logo.alt || title || 'Logo'}
|
alt={logo.alt || title || 'Logo'}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{title != null && <strong className={titleClassName}>{title}</strong>}
|
{title != null && <b className={titleClassName}>{title}</b>}
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue