Skip to content

Commit 3ce5745

Browse files
committed
fix(CDropdown): correct default variant value from 'btn-group' to 'dropdown'
The default variant prop was incorrectly set to 'btn-group' instead of the correct 'dropdown' value. This fix ensures the component uses the proper default styling and behavior.
1 parent 6c0b847 commit 3ce5745

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/coreui-react/src/components/dropdown/CDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export const CDropdown: PolymorphicRefForwardingComponent<'div', CDropdownProps>
226226
popperConfig,
227227
portal = false,
228228
reference = 'toggle',
229-
variant = 'btn-group',
229+
variant = 'dropdown',
230230
visible = false,
231231
...rest
232232
},

packages/docs/content/api/CDropdown.api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const myContainer = document.getElementById('my-container')
216216
</tr>
217217
<tr id="cdropdown-variant">
218218
<td className="text-primary fw-semibold">variant<a href="#cdropdown-variant" aria-label="CDropdown variant permalink" className="anchor-link after">#</a></td>
219-
<td><code>{`btn-group`}</code></td>
219+
<td><code>{`dropdown`}</code></td>
220220
<td><code>{`'btn-group'`}</code>, <code>{`'dropdown'`}</code>, <code>{`'input-group'`}</code>, <code>{`'nav-item'`}</code></td>
221221
</tr>
222222
<tr>

packages/docs/src/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Sidebar: FC = () => {
5252
</CSidebarBrand>
5353
<div className="text-body-secondary mx-3 mb-2 small fw-semibold">Framework:</div>
5454
<CDropdown className="mx-3 mb-4">
55-
<CDropdownToggle color="primary" variant="outline">
55+
<CDropdownToggle className="w-100" color="primary" variant="outline">
5656
React.js
5757
</CDropdownToggle>
5858
<CDropdownMenu className="w-100">

0 commit comments

Comments
 (0)