More Redocly style & key warning fixes:

- Fix unique key warnings on Dev Tools and Docs pages
- Fix active code tab colors in light mode
- Fix dev tools padding
- Fix dev tools cards in light mode
- Fix tx sender sidebar in light mode
- Fix domain verifier example code in light mode
This commit is contained in:
mDuo13
2024-01-31 14:32:59 -08:00
parent 639f21d4c0
commit f841ef173c
6 changed files with 16 additions and 11 deletions

View File

@@ -231,6 +231,7 @@ ul.nav.navbar-nav {
--code-block-controls-background-color: #E0E0E1; --code-block-controls-background-color: #E0E0E1;
--code-block-controls-border: none; --code-block-controls-border: none;
--code-block-border-color: #E0E0E1; --code-block-border-color: #E0E0E1;
--md-tabs-active-tab-background-color: #C1C1C2;
--code-block-tokens-function-color: #B23C00; --code-block-tokens-function-color: #B23C00;
--code-block-tokens-operator-color: #000; --code-block-tokens-operator-color: #000;

View File

@@ -286,7 +286,7 @@ export default function Docs() {
<h4 className="pb-4">{translate('Use Cases')}</h4> <h4 className="pb-4">{translate('Use Cases')}</h4>
<div className="card-grid card-grid-3xN use-cases"> <div className="card-grid card-grid-3xN use-cases">
{useCases.map(useCase => ( {useCases.map(useCase => (
<UseCasesCard useCase={useCase} /> <UseCasesCard useCase={useCase} key={useCase.id} />
))} ))}
</div> </div>
</section> </section>
@@ -306,7 +306,7 @@ export default function Docs() {
<div className="col"> <div className="col">
<div className="card-grid card-grid-2xN video-grid"> <div className="card-grid card-grid-2xN video-grid">
{getStartedVideos.map(video => ( {getStartedVideos.map(video => (
<VideoCard url={video.url} title={translate(video.title)} src={video.src} /> <VideoCard url={video.url} title={translate(video.title)} src={video.src} key={video.url} />
))} ))}
</div> </div>
<div className="align-button-on-bottom"> <div className="align-button-on-bottom">
@@ -360,7 +360,7 @@ export default function Docs() {
<h4 className="pb-4">{translate('Intermediate Learning Sources')}</h4> <h4 className="pb-4">{translate('Intermediate Learning Sources')}</h4>
<div className="card-grid card-grid-3xN"> <div className="card-grid card-grid-3xN">
{intermediateVideos.map(video => ( {intermediateVideos.map(video => (
<VideoCard url={video.url} title={translate(video.title)} src={video.src} /> <VideoCard url={video.url} title={translate(video.title)} src={video.src} key={video.url} />
))} ))}
</div> </div>
</section> </section>
@@ -385,6 +385,7 @@ export default function Docs() {
link={card.link} link={card.link}
title={translate(card.title)} title={translate(card.title)}
description={translate(card.description)} description={translate(card.description)}
key={card.link}
/> />
))} ))}
</div> </div>

View File

@@ -122,7 +122,7 @@ export default function DevTools() {
const { translate } = useTranslate(); const { translate } = useTranslate();
return ( return (
<div className="page-dev-tools"> <article className="page-dev-tools pt-3 p-md-3">
<div> <div>
<section className="py-20"> <section className="py-20">
<div className="mx-auto text-lg-left"> <div className="mx-auto text-lg-left">
@@ -225,6 +225,7 @@ export default function DevTools() {
href={card.href} href={card.href}
target="_blank" target="_blank"
id={card.id} id={card.id}
key={card.id}
> >
{ {
card.img && ( card.img && (
@@ -254,6 +255,7 @@ export default function DevTools() {
href={card.href} href={card.href}
target="_blank" target="_blank"
id={card.id} id={card.id}
key={card.id}
> >
{ {
card.img && ( card.img && (
@@ -303,6 +305,6 @@ export default function DevTools() {
</div> </div>
</section> </section>
</div> </div>
</div> </article>
); );
} }

File diff suppressed because one or more lines are too long

View File

@@ -36,7 +36,7 @@
items: items:
- page: ./concepts/index.md - page: ./concepts/index.md
- page: ./tutorials/index.md - page: ./tutorials/index.md
- page: ./references/index.md # TODO: waiting on file to be added - page: ./references/index.md
- page: ./infrastructure/index.md - page: ./infrastructure/index.md
- group: Use Cases - group: Use Cases
items: items:

View File

@@ -496,9 +496,10 @@ a.osano-cm-link {
} }
// Layout elements ------------------------------------------------------------- // Layout elements -------------------------------------------------------------
main .card, article .card,
.landing .card, .landing .card,
.cta-card { .cta-card,
aside .card {
color: $light-fg; color: $light-fg;
background-color: $light-standout-bg; background-color: $light-standout-bg;
box-shadow: $light-box-shadow; box-shadow: $light-box-shadow;
@@ -613,8 +614,8 @@ code {
} }
// Code blocks // Code blocks
pre code { pre code, pre {
color: $gray-050; background-color: $gray-200;
} }
// Code tabs // Code tabs