Skip to content

Commit ff6bdc4

Browse files
committed
Fix list indendation
1 parent 2ae4a92 commit ff6bdc4

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

docs/src/pages/components/buttons/buttons.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,26 @@ If you wish to use `not-allowed`, you have two options:
145145

146146
1. **CSS only**. You can remove the pointer events style on the disabled state of the `<button>` element:
147147

148-
```css
149-
.MuiButtonBase-root:disabled {
150-
cursor: not-allowed;
151-
pointer-events: auto;
152-
}
153-
```
148+
```css
149+
.MuiButtonBase-root:disabled {
150+
cursor: not-allowed;
151+
pointer-events: auto;
152+
}
153+
```
154154

155-
However:
155+
However:
156156

157-
- You should add `pointer-events: none;` back when you need to display [tooltips on disabled elements](/components/tooltips/#disabled-elements)
158-
- The cursor won't change if you render something other than a button element, for instance, a link `<a>` element.
157+
- You should add `pointer-events: none;` back when you need to display [tooltips on disabled elements](/components/tooltips/#disabled-elements)
158+
- The cursor won't change if you render something other than a button element, for instance, a link `<a>` element.
159159

160160
2. **DOM change**. You can wrap the button:
161161

162-
```jsx
163-
<span style={{ cursor: "not-allowed" }}>
164-
<Button component={Link} disabled>disabled</Button>
165-
</span>
166-
```
162+
```jsx
163+
<span style={{ cursor: 'not-allowed' }}>
164+
<Button component={Link} disabled>
165+
disabled
166+
</Button>
167+
</span>
168+
```
167169

168-
This has the advantage of supporting any element, for instance, a link `<a>` element.
170+
This has the advantage of supporting any element, for instance, a link `<a>` element.

0 commit comments

Comments
 (0)