1818 </router-link >
1919 </pf-masthead-main >
2020 <pf-masthead-content >
21- <pf-toolbar full-height >
21+ <pf-toolbar class = " docs-toolbar " full-height >
2222 <pf-toolbar-content >
23- <pf-toolbar-item >header-tools</pf-toolbar-item >
24- <pf-toolbar-item align =" right" >
25- <pf-switch v-model:checked =" darkTheme" label =" Dark theme" />
26- </pf-toolbar-item >
23+ <pf-toolbar-group align =" right" >
24+ <pf-toolbar-item >
25+ <pf-toggle-group v-model =" darkTheme" >
26+ <pf-toggle-group-item :value =" false" >
27+ <sun-icon />
28+ </pf-toggle-group-item >
29+ <pf-toggle-group-item :value =" true" >
30+ <moon-icon />
31+ </pf-toggle-group-item >
32+ </pf-toggle-group >
33+ </pf-toolbar-item >
34+ <pf-toolbar-item >
35+ <pf-dropdown >
36+ <template #toggle >
37+ <pf-menu-toggle full-height >
38+ VuePatternfly v5
39+ </pf-menu-toggle >
40+ </template >
41+
42+ <pf-dropdown-item to =" https://mtorromeo.github.io/vue-patternfly/" >VuePatternFly v6</pf-dropdown-item >
43+ </pf-dropdown >
44+ </pf-toolbar-item >
45+ </pf-toolbar-group >
2746 </pf-toolbar-content >
2847 </pf-toolbar >
2948 </pf-masthead-content >
89108 }
90109 }
91110}
111+
112+ .docs-toolbar .pf-v5-c-toggle-group {
113+ --pf-v5-c-toggle-group__button--m-selected--BackgroundColor : var (--pf-v5-global--palette--blue-400 );
114+ --pf-v5-c-toggle-group__button--focus--BackgroundColor : transparent ;
115+ --pf-v5-c-toggle-group__button--hover--BackgroundColor : transparent ;
116+ }
92117 </style >
93118
94119<script lang="ts" setup>
@@ -98,6 +123,8 @@ import { useAlertsStore } from './store/alerts';
98123import { ref } from ' vue' ;
99124import { watch } from ' vue' ;
100125import BarsIcon from ' @vue-patternfly/icons/bars-icon' ;
126+ import SunIcon from " @vue-patternfly/icons/sun-icon" ;
127+ import MoonIcon from " @vue-patternfly/icons/moon-icon" ;
101128
102129const alerts = useAlertsStore ();
103130const maxDisplayed = ref (5 );
@@ -113,15 +140,14 @@ const overflowMessage = computed(() => {
113140 return ' ' ;
114141});
115142
116- const darkTheme = computed ({
117- get : () => document .documentElement .classList .contains (' pf-v5-theme-dark' ),
118- set(value ) {
119- if (value ) {
120- document .documentElement .classList .add (' pf-v5-theme-dark' );
121- } else {
122- document .documentElement .classList .remove (' pf-v5-theme-dark' );
123- }
124- },
143+ const darkTheme = ref (document .documentElement .classList .contains (" pf-v5-theme-dark" ));
144+
145+ watch (darkTheme , (value ) => {
146+ if (value ) {
147+ document .documentElement .classList .add (" pf-v5-theme-dark" );
148+ } else {
149+ document .documentElement .classList .remove (" pf-v5-theme-dark" );
150+ }
125151});
126152
127153function expandAlerts() {
0 commit comments