Skip to content

Commit

Permalink
fix className
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Nov 5, 2021
1 parent 3ffbc09 commit c771534
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 30 deletions.
2 changes: 1 addition & 1 deletion docs/components/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const App = () => {
return (
<>
<div class="alert-duration">
<div className="alert-duration">
<SlButton type="primary" onClick={() => setOpen(true)}>Show Alert</SlButton>
<SlAlert
Expand Down
2 changes: 1 addition & 1 deletion docs/components/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const css = `

const App = () => (
<>
<div class="avatar-group">
<div className="avatar-group">
<SlAvatar image="https://images.unsplash.com/photo-1490150028299-bf57d78394e0?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=256&h=256&q=80&crop=right" />
<SlAvatar image="https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=256&h=256&crop=left&q=80" />
<SlAvatar image="https://images.unsplash.com/photo-1456439663599-95b042d50252?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=256&h=256&crop=left&q=80" />
Expand Down
2 changes: 1 addition & 1 deletion docs/components/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const css = `

const App = () => (
<>
<div class="badge-pulse">
<div className="badge-pulse">
<SlBadge type="primary" pill pulse>1</SlBadge>
<SlBadge type="success" pill pulse>1</SlBadge>
<SlBadge type="neutral" pill pulse>1</SlBadge>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/button-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ const css = `

const App = () => (
<>
<div class="button-group-toolbar">
<div className="button-group-toolbar">
<SlButtonGroup label="History">
<SlTooltip content="Undo">
<SlButton><SlIcon name="arrow-counterclockwise"></SlIcon></SlButton>
Expand Down
10 changes: 5 additions & 5 deletions docs/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const css = `

const App = () => (
<>
<SlCard class="card-overview">
<SlCard className="card-overview">
<img
slot="image"
src="https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80"
Expand Down Expand Up @@ -115,7 +115,7 @@ const css = `

const App = () => (
<>
<SlCard class="card-basic">
<SlCard className="card-basic">
This is just a basic card. No image, no header, and no footer. Just your content.
</SlCard>

Expand Down Expand Up @@ -185,7 +185,7 @@ const css = `

const App = () => (
<>
<SlCard class="card-header">
<SlCard className="card-header">
<div slot="header">
Header Title

Expand Down Expand Up @@ -248,7 +248,7 @@ const css = `

const App = () => (
<>
<SlCard class="card-footer">
<SlCard className="card-footer">
This card has a footer. You can put all sorts of things in it!

<div slot="footer">
Expand Down Expand Up @@ -294,7 +294,7 @@ const css = `

const App = () => (
<>
<SlCard class="card-image">
<SlCard className="card-image">
<img
slot="image"
src="https://images.unsplash.com/photo-1547191783-94d5f8f6d8b1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=400&q=80"
Expand Down
1 change: 0 additions & 1 deletion docs/components/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ const App = () => {
<SlDrawer
label="Drawer"
contained
class="drawer-contained"
open={open}
onSlAfterHide={() => setOpen(false)}
style={{ '--size': '50%' }}
Expand Down
2 changes: 1 addition & 1 deletion docs/components/dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const css = `

const App = () => (
<>
<div class="dropdown-hoist">
<div className="dropdown-hoist">
<SlDropdown>
<SlButton slot="trigger" caret>No Hoist</SlButton>
<SlMenu>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/format-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const App = () => {
const [value, setValue] = useState(1000);

return (
<div class="format-number-overview">
<>
<SlFormatNumber value={value} />
<br /><br />
<SlInput
Expand All @@ -40,7 +40,7 @@ const App = () => {
style={{ maxWidth: '180px' }}
onSlInput={event => setValue(event.target.value)}
/>
</div>
</>
);
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/components/icon-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const css = `
`;

const App = () => (
<div class="icon-button-color">
<div className="icon-button-color">
<SlIconButton name="type-bold" label="Bold" />
<SlIconButton name="type-italic" label="Italic" />
<SlIconButton name="type-underline" label="Underline" />
Expand Down
4 changes: 2 additions & 2 deletions docs/components/mutation-observer.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ const App = () => {

return (
<>
<div class="mutation-child-list">
<div className="mutation-child-list">
<SlMutationObserver
child-list
onSlMutation={event => console.log(event.detail)}
>
<div class="buttons">
<div className="buttons">
<SlButton type="primary" onClick={addButton}>Add button</SlButton>
{buttonIds.map(id => (
<SlButton key={id} type="default" onClick={() => removeButton(id)}>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/qr-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const App = () => {

return (
<>
<div class="qr-overview">
<div className="qr-overview">
<SlQrCode value={value} label="Scan this code to visit Shoelace on the web!" />
<br />

Expand Down Expand Up @@ -151,7 +151,7 @@ const css = `
const App = () => {
return (
<>
<div class="qr-error-correction">
<div className="qr-error-correction">
<SlQrCode value="https://shoelace.style/" error-correction="L" />
<SlQrCode value="https://shoelace.style/" error-correction="M" />
<SlQrCode value="https://shoelace.style/" error-correction="Q" />
Expand Down
20 changes: 10 additions & 10 deletions docs/components/skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const css = `

const App = () => (
<>
<div class="skeleton-overview">
<div className="skeleton-overview">
<header>
<SlSkeleton />
<SlSkeleton />
Expand Down Expand Up @@ -152,7 +152,7 @@ const css = `

const App = () => (
<>
<div class="skeleton-effects">
<div className="skeleton-effects">
<SlSkeleton effect="none" />
None

Expand Down Expand Up @@ -223,7 +223,7 @@ const css = `

const App = () => (
<>
<div class="skeleton-paragraphs">
<div className="skeleton-paragraphs">
<SlSkeleton />
<SlSkeleton />
<SlSkeleton />
Expand Down Expand Up @@ -287,7 +287,7 @@ const css = `

const App = () => (
<>
<div class="skeleton-avatars">
<div className="skeleton-avatars">
<SlSkeleton />
<SlSkeleton />
<SlSkeleton />
Expand Down Expand Up @@ -387,12 +387,12 @@ const css = `

const App = () => (
<>
<div class="skeleton-shapes">
<SlSkeleton class="square" />
<SlSkeleton class="circle" />
<SlSkeleton class="triangle" />
<SlSkeleton class="cross" />
<SlSkeleton class="comment" />
<div className="skeleton-shapes">
<SlSkeleton className="square" />
<SlSkeleton className="circle" />
<SlSkeleton className="triangle" />
<SlSkeleton className="cross" />
<SlSkeleton className="comment" />
</div>

<style>{css}</style>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/tab-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const App = () => {
}

return (
<SlTabGroup class="tabs-closable" onSlClose={handleClose}>
<SlTabGroup className="tabs-closable" onSlClose={handleClose}>
<SlTab slot="nav" panel="general">General</SlTab>
<SlTab slot="nav" panel="closable-1" closable onSlClose={handleClose}>Closable 1</SlTab>
<SlTab slot="nav" panel="closable-2" closable onSlClose={handleClose}>Closable 2</SlTab>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const App = () => {

return (
<>
<div class="tags-removable">
<div className="tags-removable">
<SlTag size="small" removable onSlRemove={handleRemove}>
Small
</SlTag>
Expand Down

0 comments on commit c771534

Please sign in to comment.