Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: format #2398

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/components/ComponentDemo/ComponentDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {
return currentVariant.props.children;
});
};

const labelText = `Live editor for the ${components[0].label} component`;

// TODO max width editor handle multiple clicks use regex for individual props?
Expand Down Expand Up @@ -166,15 +166,15 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {

<Code links={links} code={code} src={src} className={codeRow}>
<label htmlFor="live-editor-label">
<span className="live-editor-label">{labelText}</span>
</label>
<LiveEditor
padding={16}
style={{ overflowX: 'auto', whiteSpace: 'pre' }}
onChange={(updatedCode) => setCode(updatedCode)}
className={editorContainer}
textareaId="live-editor-label"
/>
<span className="live-editor-label">{labelText}</span>
</label>
<LiveEditor
padding={16}
style={{ overflowX: 'auto', whiteSpace: 'pre' }}
onChange={(updatedCode) => setCode(updatedCode)}
className={editorContainer}
textareaId="live-editor-label"
/>
</Code>
{knobs && (
<>
Expand Down
4 changes: 2 additions & 2 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
path: /patterns/overflow-content/
- title: Search
path: /patterns/search-pattern/
# - title: Status indicators
# path: /patterns/status-indicator-pattern/
# - title: Status indicators
# path: /patterns/status-indicator-pattern/
- title: Text toolbar
path: /patterns/text-toolbar-pattern/
- title: Community assets
Expand Down
12 changes: 6 additions & 6 deletions src/pages/all-about-carbon/what-is-carbon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ community of contributors.

A design system is a collection of pre-built, reusable assets—components,
patterns, guidance, and code—that allows its users to build consistent digital
experiences faster. By using the pre-built and universal assets of Carbon, the time teams spend
designing and building is minimized. Instead of building and re-building basic
elements, they can spend that time customizing their products to address
specific client use cases.
experiences faster. By using the pre-built and universal assets of Carbon, the
time teams spend designing and building is minimized. Instead of building and
re-building basic elements, they can spend that time customizing their products
to address specific client use cases.

### Carbon is open source

Carbon is funded and built by IBM, which means we build for the company’s
business needs, but we’ve made it open source for anyone to use and contribute
back to. While being primarily open source, Carbon also serves various parts of the IBM
business that follow an inner source model.
back to. While being primarily open source, Carbon also serves various parts of
the IBM business that follow an inner source model.

## How Carbon works

Expand Down
4 changes: 3 additions & 1 deletion src/pages/developing/angular-tutorial/step-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ the data table rows.

```javascript path=src/app/repositories/repo-table/repo-table.component.ts
// If we're here, we've got our data!
this.model.data = this.prepareData(response.data.organization.repositories.nodes);
this.model.data = this.prepareData(
response.data.organization.repositories.nodes
);
```

Then, in `ngOnInit()` delete the static rows since we no longer need them.
Expand Down
8 changes: 4 additions & 4 deletions src/pages/developing/angular-tutorial/step-5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ first.
npm run build
```

Looking at `package.json`, you'll find `ng build`. This
builds the app for production to the `dist` folder. It bundles Angular in
production mode and optimizes the build for the best performance. It even goes
so far to minify files and include hashes in filenames for caching.
Looking at `package.json`, you'll find `ng build`. This builds the app for
production to the `dist` folder. It bundles Angular in production mode and
optimizes the build for the best performance. It even goes so far to minify
files and include hashes in filenames for caching.

As a lot of this may seem like magic since the build configuration came from
Create React App, go ahead and check out their
Expand Down