Skip to content

Commit 88cb35c

Browse files
committed
refactor: update examples
1 parent 452725a commit 88cb35c

File tree

4 files changed

+23
-25
lines changed

4 files changed

+23
-25
lines changed

src/components/DocsExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const DocsExample = (props) => {
1111

1212
return (
1313
<div className="example">
14-
<CNav variant="tabs">
14+
<CNav variant="underline-border">
1515
<CNavItem>
1616
<CNavLink href="#" active>
1717
<CIcon icon={cilMediaPlay} className="me-2" />

src/scss/_examples.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

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

1515
& + p {

src/views/notifications/toasts/Toasts.js

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,25 @@ const Toasts = () => {
9292
<p className="text-body-secondary small">
9393
Toasts are slightly translucent to blend in with what&#39;s below them.
9494
</p>
95-
<DocsExample href="components/toast#translucent">
96-
<div className="bg-dark p-3">
97-
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
98-
<CToastHeader closeButton>
99-
<svg
100-
className="rounded me-2"
101-
width="20"
102-
height="20"
103-
xmlns="http://www.w3.org/2000/svg"
104-
preserveAspectRatio="xMidYMid slice"
105-
focusable="false"
106-
role="img"
107-
>
108-
<rect width="100%" height="100%" fill="#007aff"></rect>
109-
</svg>
110-
<strong className="me-auto">CoreUI for React.js</strong>
111-
<small>7 min ago</small>
112-
</CToastHeader>
113-
<CToastBody>Hello, world! This is a toast message.</CToastBody>
114-
</CToast>
115-
</div>
95+
<DocsExample href="components/toast#translucent" tabContentClassName="bg-dark">
96+
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
97+
<CToastHeader closeButton>
98+
<svg
99+
className="rounded me-2"
100+
width="20"
101+
height="20"
102+
xmlns="http://www.w3.org/2000/svg"
103+
preserveAspectRatio="xMidYMid slice"
104+
focusable="false"
105+
role="img"
106+
>
107+
<rect width="100%" height="100%" fill="#007aff"></rect>
108+
</svg>
109+
<strong className="me-auto">CoreUI for React.js</strong>
110+
<small>7 min ago</small>
111+
</CToastHeader>
112+
<CToastBody>Hello, world! This is a toast message.</CToastBody>
113+
</CToast>
116114
</DocsExample>
117115
</CCardBody>
118116
</CCard>
@@ -128,7 +126,7 @@ const Toasts = () => {
128126
some spacing.
129127
</p>
130128
<DocsExample href="components/toast#stacking">
131-
<CToaster>
129+
<CToaster className="position-static">
132130
<CToast title="CoreUI for React.js" autohide={false} visible={true}>
133131
<CToastHeader closeButton>
134132
<svg

src/views/widgets/WidgetsDropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const WidgetsDropdown = () => {
224224
color="warning"
225225
value={
226226
<>
227-
2.49{' '}
227+
2.49%{' '}
228228
<span className="fs-6 fw-normal">
229229
(84.7% <CIcon icon={cilArrowTop} />)
230230
</span>

0 commit comments

Comments
 (0)