Skip to content

Commit

Permalink
Merge pull request #4019 from afebbraro/remove-design-page
Browse files Browse the repository at this point in the history
Remove design principle page, update code to use es6, fix existing PROD react input console error
  • Loading branch information
Amber Febbraro authored Jun 25, 2021
2 parents 60c91b9 + 6c8f00b commit 2dc91b6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 192 deletions.
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
to = "/installing-spark/angular"
status = 301

[[redirects]]
from = "/gettingstarted/design-principles"
to = "/principles/design-principles"
status = 301

[[redirects]]
from = "/gettingstarted/html"
to = "/installing-spark/html"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Header = ({ setContext }) => {
additionalClasses="sprk-c-Masthead__link"
variant="simple"
element={Link}
to="/principles/design-principles"
to="/principles/accessibility-guidelines"
>
Principles
</SprkLink>,
Expand Down
4 changes: 2 additions & 2 deletions src/components/layouts/PrinciplesLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react';
import PropTypes from 'prop-types';
import Layout from './Layout';

function PrinciplesLayout({ children, location }) {
const PrinciplesLayout = ({ children, location }) => {
return (
<Layout initialContext="principles" location={location}>
{children}
</Layout>
);
}
};

PrinciplesLayout.propTypes = {
children: PropTypes.node,
Expand Down
8 changes: 4 additions & 4 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const teaserDesigners = {
ctaVariant: 'button',
ctaLinkElement: 'a',
buttonVariant: 'tertiary',
href: '/principles/design-principles',
href: '/using-spark/foundations/color-usage',
},
media: {
href: '/principles/design-principles',
href: '/using-spark/foundations/color-usage',
mediaLinkElement: 'a',
imgAlt: 'Go to Designer Basics',
imgSrc: designersMedia,
Expand Down Expand Up @@ -126,10 +126,10 @@ const teaserFoundations = {
ctaVariant: 'button',
ctaLinkElement: 'a',
buttonVariant: 'tertiary',
href: '/using-spark/foundations/color',
href: '/using-spark/foundations/color-usage',
},
media: {
href: '/using-spark/foundations/color',
href: '/using-spark/foundations/color-usage',
mediaLinkElement: 'a',
imgAlt: 'Go to Foundations',
imgSrc: foundationsMedia,
Expand Down
179 changes: 0 additions & 179 deletions src/pages/principles/design-principles.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/using-spark/foundations/color-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ import {
<input
class="sprk-b-TextInput sprk-u-Width-100"
id="text-input"
value="Focus to see styling"
defaultValue="Focus to see styling"
/>
</SprkStackItem>
</SprkStack>
Expand Down

0 comments on commit 2dc91b6

Please sign in to comment.