Skip to content

Commit 646d8d4

Browse files
[React] Apply missing bootstrap styles after upgrade (#1341)
1 parent 0eb4c1e commit 646d8d4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/create-sitecore-jss/src/templates/react/data/routes/styleguide/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ placeholders:
9999
href: https://dev.sitecore.net
100100
text: Sitecore Dev Site
101101
target: _blank
102-
class: font-weight-bold
102+
class: fw-bold
103103
title: <a> title attribute
104104
- componentName: Styleguide-FieldUsage-ItemLink
105105
fields:

packages/create-sitecore-jss/src/templates/react/src/Layout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import logo from './assets/sc_logo.svg';
2323
// Most apps may also wish to use GraphQL for their navigation construction; this sample does not simply to support disconnected mode.
2424
let Navigation = ({ t, i18n }) => (
2525
<div className="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom">
26-
<h5 className="my-0 me-md-auto font-weight-normal">
26+
<h5 className="my-0 me-md-auto fw-normal">
2727
<NavLink to="/" className="text-dark">
2828
<img src={logo} alt="Sitecore" />
2929
</NavLink>

packages/create-sitecore-jss/src/templates/react/src/components/Styleguide-FieldUsage-Link/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const StyleguideFieldUsageLink = (props) => (
2626
<Link
2727
field={props.fields.externalLink}
2828
showLinkTextWithChildrenPresent={true}
29-
className="font-weight-bold"
29+
className="fw-bold"
3030
data-otherattributes="pass-through-to-anchor-tag"
3131
/>
3232
</StyleguideSpecimen>

packages/create-sitecore-jss/src/templates/react/src/components/Styleguide-FieldUsage-Text/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const StyleguideFieldUsageText = (props) => (
1717
tag="section"
1818
editable={false}
1919
encode={false}
20-
className="font-weight-bold"
20+
className="fw-bold"
2121
data-sample="other-attributes-pass-through"
2222
/>
2323

packages/create-sitecore-jss/src/templates/react/src/components/Styleguide-Layout/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const StyleguideLayout = (props) => {
2323
}))
2424
.map((section) => (
2525
<nav key={section.heading} className="nav flex-column pt-2">
26-
<a href={`#${section.id}`} className="nav-item font-weight-bold">
26+
<a href={`#${section.id}`} className="nav-item fw-bold">
2727
{section.heading}
2828
</a>
2929
{section.children && (

0 commit comments

Comments
 (0)