Skip to content

Commit

Permalink
refactor: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mrholek committed Nov 7, 2023
1 parent 452725a commit 88cb35c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/components/DocsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DocsExample = (props) => {

return (
<div className="example">
<CNav variant="tabs">
<CNav variant="underline-border">
<CNavItem>
<CNavLink href="#" active>
<CIcon icon={cilMediaPlay} className="me-2" />
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.tab-content {
background-color: rgba(var(--#{$prefix}tertiary-bg-rgb), var(--#{$prefix}bg-opacity, 1)) !important;
background-color: rgba(var(--#{$prefix}tertiary-bg-rgb), var(--#{$prefix}bg-opacity, 1));
}

& + p {
Expand Down
42 changes: 20 additions & 22 deletions src/views/notifications/toasts/Toasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,25 @@ const Toasts = () => {
<p className="text-body-secondary small">
Toasts are slightly translucent to blend in with what&#39;s below them.
</p>
<DocsExample href="components/toast#translucent">
<div className="bg-dark p-3">
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
<CToastHeader closeButton>
<svg
className="rounded me-2"
width="20"
height="20"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid slice"
focusable="false"
role="img"
>
<rect width="100%" height="100%" fill="#007aff"></rect>
</svg>
<strong className="me-auto">CoreUI for React.js</strong>
<small>7 min ago</small>
</CToastHeader>
<CToastBody>Hello, world! This is a toast message.</CToastBody>
</CToast>
</div>
<DocsExample href="components/toast#translucent" tabContentClassName="bg-dark">
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
<CToastHeader closeButton>
<svg
className="rounded me-2"
width="20"
height="20"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid slice"
focusable="false"
role="img"
>
<rect width="100%" height="100%" fill="#007aff"></rect>
</svg>
<strong className="me-auto">CoreUI for React.js</strong>
<small>7 min ago</small>
</CToastHeader>
<CToastBody>Hello, world! This is a toast message.</CToastBody>
</CToast>
</DocsExample>
</CCardBody>
</CCard>
Expand All @@ -128,7 +126,7 @@ const Toasts = () => {
some spacing.
</p>
<DocsExample href="components/toast#stacking">
<CToaster>
<CToaster className="position-static">
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
<CToastHeader closeButton>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/views/widgets/WidgetsDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const WidgetsDropdown = () => {
color="warning"
value={
<>
2.49{' '}
2.49%{' '}
<span className="fs-6 fw-normal">
(84.7% <CIcon icon={cilArrowTop} />)
</span>
Expand Down

0 comments on commit 88cb35c

Please sign in to comment.