/
githubmirror
/
bootstrap
Обзор
Документация
Войти
/
githubmirror
/
bootstrap
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
site/src/components/shortcodes/CalloutDeprecatedDarkVariants.astro
19 строк
520 B
Julien Déramond
Docs: migration from Hugo to Astro (#41251)
15 апр 2025, 19:37
Не верифицирован
15 апр 2025, 19:37
a8ab199
Код
Авторство
О чём код?
--- /* * Outputs message about dark mode component variants being deprecated in v5.3. */ interface Props { component: string } const { component } = Astro.props --- <div class="bd-callout bd-callout-warning"> <p> <strong>Heads up!</strong> Dark variants for components were deprecated in v5.3.0 with the introduction of color modes. Instead of adding <code>.{component}-dark</code>, set <code>data-bs-theme="dark"</code> on the root element, a parent wrapper, or the component itself. </p> </div>