Skip to content

Commit c56b6db

Browse files
committed
Add btn-icon class to navbar toggler
Add the btn-icon utility class to the navbar toggler button in the navbar-fixed example to apply icon button styling. This change updates site/src/assets/examples/navbar-fixed/index.astro and keeps the existing SVG toggler markup and collapse behavior unchanged.
1 parent 94d2d12 commit c56b6db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

site/src/assets/examples/navbar-fixed/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const extra_css = ['navbar-fixed.css']
88
<nav class="navbar md:navbar-expand navbar-dark fixed-top bg-dark">
99
<div class="container-fluid">
1010
<a class="navbar-brand" href="#">Fixed navbar</a>
11-
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
11+
<button class="btn-icon navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
1212
<svg class="navbar-toggler-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"><path d="M1 3.5h14M1 8h14M1 12.5h14"/></svg>
1313
</button>
1414
<div class="collapse navbar-collapse" id="navbarCollapse">

0 commit comments

Comments
 (0)