Struggling to adjust the default 14px padding-left applied by startAdornment
in order to make the adornment occupy half of the TextField
. Having trouble styling the startAdornment
overall.
Attempts to style the div itself have been partially successful, but remnants of the 14px padding left remain. Also tried directly styling the InputAdornment
with no visible effect.
InputProps={
this.state.didChange[rowIndex] ? {
startAdornment: (
<InputAdornment
position="start"
component="div"
style={{paddingLeft: '-14px'}}
disablePointerEvents>
<div style={{ backgroundColor: '#D3D4D0', marginLeft: '-14px', padding: "10px 13px", width: "26px", color: '#a1a39b' }}>
{prevVals[rowIndex]}
</div>
</InputAdornment>
)
} : null} />
The current code output looks like this:
https://i.sstatic.net/Guov0.png
This is the desired outcome:
https://i.sstatic.net/ssRHo.png
No need to worry about the border color difference as that can be adjusted separately.