Skip to content

Commit

Permalink
fix: Capitalize section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Oct 25, 2023
1 parent 9207b89 commit 8a02f77
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 32 deletions.
4 changes: 3 additions & 1 deletion src/components/KonnectorErrors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ export const KonnectorErrors = ({
</InfosCarrousel>
</div>
) : (
<Divider className="u-mv-0">{t('connector.title')}</Divider>
<Divider className="u-mv-0" variant="subtitle2">
{t('connector.title')}
</Divider>
)
}

Expand Down
4 changes: 3 additions & 1 deletion src/components/Shortcuts/ShortcutsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const ShortcutsView = ({ shortcutsDirectories }) => {
key={directory.name}
className="shortcuts-list-wrapper u-m-auto u-w-100"
>
<Divider className="u-mv-0">{directory.name}</Divider>
<Divider className="u-mv-0" variant="subtitle2">
{directory.name}
</Divider>
<div className="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center">
{directory.shortcuts.map(shortcut => (
<ShortcutLink key={shortcut.name} file={shortcut} />
Expand Down
36 changes: 18 additions & 18 deletions src/components/Shortcuts/__snapshots__/ShortcutsView.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
List title
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down Expand Up @@ -77,11 +77,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
List title
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down Expand Up @@ -203,11 +203,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
a
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down Expand Up @@ -269,11 +269,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
c
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down Expand Up @@ -338,11 +338,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
a
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down Expand Up @@ -404,11 +404,11 @@ Object {
<div
class="shortcuts-list-wrapper u-m-auto u-w-100"
>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
c
</p>
</h6>
<div
class="shortcuts-list u-w-100 u-mv-3 u-mv-2-t u-mh-auto u-flex-justify-center"
>
Expand Down
24 changes: 12 additions & 12 deletions src/components/__snapshots__/KonnectorErrors.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@

exports[`KonnectorErrors should hide errors when the konnector or account is missing 1`] = `
<div>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
My connected services
</p>
</h6>
</div>
`;

exports[`KonnectorErrors should render divider when all errors are muted 1`] = `
<div>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
My connected services
</p>
</h6>
</div>
`;

exports[`KonnectorErrors should render divider when there are errors but no installed konnector 1`] = `
<div>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
My connected services
</p>
</h6>
</div>
`;

exports[`KonnectorErrors should render divider when there are no errors 1`] = `
<div>
<p
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-body2 MuiTypography-colorTextPrimary"
<h6
class="MuiTypography-root styles__divider___SuA5q u-mv-0 MuiTypography-subtitle2 MuiTypography-colorTextPrimary"
>
My connected services
</p>
</h6>
</div>
`;

0 comments on commit 8a02f77

Please sign in to comment.