Skip to content

Commit

Permalink
Minor docuemntation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohal committed Jul 26, 2023
1 parent f87613c commit 6916361
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/components/FormLayout/FormLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export const FormLayout = ({
)}
{...hasCustomLabelWidth ? { style: { '--rui-custom-label-width': labelWidth } } : {}}
>
<FormLayoutContext.Provider
value={childProps}
>
<FormLayoutContext.Provider value={childProps}>
{children}
</FormLayoutContext.Provider>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/components/FormLayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ with CSS custom properties.
- The `custom` mode (local) allows you to enter any **custom label width for
individual FormLayouts.**

📐 Try resizing the playground to see how individual options work.

```docoff-react-preview
React.createElement(() => {
const [labelWidth, setLabelWidth] = React.useState('default');
Expand Down
2 changes: 0 additions & 2 deletions src/components/Grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ You can use the [`repeat()`][repeat] function to specify a recurring pattern.
Combine `repeat()` with `auto-fit` and [`minmax()`][minmax] to build automatic
responsive layouts.

📐 Try resizing the playground to see it in action.

```docoff-react-preview
<Grid columns="repeat(auto-fit, minmax(200px, auto))">
<docoff-placeholder bordered>Grid item</docoff-placeholder>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/_hooks/useModalScrollPrevention.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const useModalScrollPrevention = (preventScrollUnderneath) => {
const prevPaddingRight = window.document.body.style.paddingRight;

window.document.body.style.overflow = 'hidden';

if (Number.isNaN(parseInt(prevPaddingRight, 10))) {
console.log('A')
window.document.body.style.paddingRight = `${scrollbarWidth}px`;
} else {
window.document.body.style.paddingRight = `calc(${prevPaddingRight} + ${scrollbarWidth}px)`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import { Button } from '../../../../index';
import { Button } from '../../../..';
import styles from '../TableCell.scss';

export const TableHeaderCell = ({
Expand Down
2 changes: 0 additions & 2 deletions src/components/Toolbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ set the `nowrap` option on the Toolbar or on individual ToolbarGroups. Note that
ToolbarGroups can still wrap when the wrapping is disabled just on their parent
Toolbar.

📐 Try resizing the playground below to see how it works.

```docoff-react-preview
<p>Disabled wrapping on entire toolbar:</p>
<Toolbar justify="space-between" nowrap>
Expand Down

0 comments on commit 6916361

Please sign in to comment.