Skip to content

Commit

Permalink
Fix docs examples with broken styles on inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Jul 22, 2024
1 parent e220343 commit 9b69e43
Showing 1 changed file with 22 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ export default () => (
<EuiFormControlLayoutDelimited
fullWidth
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -37,16 +35,14 @@ export default () => (

<EuiFormControlLayoutDelimited
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -57,16 +53,14 @@ export default () => (
<EuiFormControlLayoutDelimited
append={<EuiFormLabel>px</EuiFormLabel>}
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -77,16 +71,14 @@ export default () => (
<EuiFormControlLayoutDelimited
icon="vector"
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -98,16 +90,14 @@ export default () => (
clear={{ onClick: () => {} }}
isLoading
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -118,16 +108,14 @@ export default () => (
<EuiFormControlLayoutDelimited
isLoading
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -138,16 +126,14 @@ export default () => (
<EuiFormControlLayoutDelimited
compressed
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -158,17 +144,15 @@ export default () => (
<EuiFormControlLayoutDelimited
prepend={<EuiFormLabel>Add</EuiFormLabel>}
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
delimiter="+"
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -179,17 +163,15 @@ export default () => (
<EuiFormControlLayoutDelimited
prepend={<EuiFormLabel>Merge</EuiFormLabel>}
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
/>
}
delimiter={<EuiIcon type="merge" />}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
aria-label="Use aria labels when no actual label is in use"
Expand All @@ -201,17 +183,15 @@ export default () => (
readOnly
prepend={<EuiFormLabel>Read only</EuiFormLabel>}
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
readOnly
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
readOnly
Expand All @@ -224,17 +204,15 @@ export default () => (
isDisabled
prepend={<EuiFormLabel>Disabled</EuiFormLabel>}
startControl={
<input
type="number"
<EuiFieldNumber
placeholder="0"
className="euiFieldNumber"
disabled
aria-label="Use aria labels when no actual label is in use"
/>
}
endControl={
<input
type="number"
<EuiFieldNumber
placeholder="100"
className="euiFieldNumber"
disabled
Expand Down

0 comments on commit 9b69e43

Please sign in to comment.