fix add tools button from catalog position
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
dc9473242a
commit
ffb020ee98
3 changed files with 45 additions and 40 deletions
|
|
@ -397,23 +397,23 @@ function LibraryToolExample({ module, sourceData, description, categoryTitle, do
|
|||
return (
|
||||
<section id={getLibraryAnchorId(module)} className="library-tool-section nds-panel">
|
||||
<div className="library-tool-intro">
|
||||
<div>
|
||||
<div className="library-tool-title-row">
|
||||
<span className="module-icon" aria-hidden="true">
|
||||
<span className={`module-icon-svg module-icon-${definition.icon}`} />
|
||||
</span>
|
||||
<h2>{title}</h2>
|
||||
</div>
|
||||
<span className="library-tool-badge nds-badge">{categoryTitle}</span>
|
||||
{description && <p>{description}</p>}
|
||||
<div className="library-tool-copy-action">
|
||||
<p>{copyContent.isolationHelp}</p>
|
||||
<button className="nds-button" data-size="sm" data-variant="primary" type="button" disabled={!storageReady} onClick={onCopy}>
|
||||
<Icon name="add" />
|
||||
{copyContent.triggerLabel}
|
||||
</button>
|
||||
<div className="library-tool-intro-heading">
|
||||
<div>
|
||||
<div className="library-tool-title-row">
|
||||
<span className="module-icon" aria-hidden="true">
|
||||
<span className={`module-icon-svg module-icon-${definition.icon}`} />
|
||||
</span>
|
||||
<h2>{title}</h2>
|
||||
</div>
|
||||
<span className="library-tool-badge nds-badge">{categoryTitle}</span>
|
||||
</div>
|
||||
<button className="library-tool-copy-button nds-button" data-size="sm" data-variant="primary" type="button" disabled={!storageReady} onClick={onCopy}>
|
||||
<Icon name="add" />
|
||||
{copyContent.triggerLabel}
|
||||
</button>
|
||||
</div>
|
||||
{description && <p>{description}</p>}
|
||||
<p className="library-tool-copy-help">{copyContent.isolationHelp}</p>
|
||||
</div>
|
||||
<div className={`library-example-layout ${Array.isArray(docs?.controls) && docs.controls.length ? "has-legend" : ""}`}>
|
||||
<ToolControlLegend items={docs?.controls} heading={controlLegendHeading || "Repères"} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue