more navigation cue improvements

main
Mike Fix 6 years ago committed by Michael Fix
parent f7a73b568a
commit 0d816433a3

@ -65,10 +65,10 @@ class BackgroundSelect extends React.PureComponent {
))} ))}
</div> </div>
<div className="picker-tabs-contents"> <div className="picker-tabs-contents">
<div style={mode === 'color' ? {} : { display: 'none' }}> <div hidden={mode !== 'color'}>
<ColorPicker color={color} onChange={this.handlePickColor} /> <ColorPicker color={color} onChange={this.handlePickColor} />
</div> </div>
<div style={mode === 'image' ? {} : { display: 'none' }}> <div hidden={mode !== 'image'}>
<ImagePicker onChange={onChange} imageDataURL={image} aspectRatio={aspectRatio} /> <ImagePicker onChange={onChange} imageDataURL={image} aspectRatio={aspectRatio} />
</div> </div>
</div> </div>

@ -214,6 +214,10 @@ export default class ImagePicker extends React.Component {
opacity: 0.4; opacity: 0.4;
} }
.choose-image > button:focus {
text-decoration: underline;
}
form { form {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

@ -27,7 +27,10 @@ const Input = React.forwardRef(({ color = COLORS.SECONDARY, align = 'right', ...
input[type='file'] { input[type='file'] {
cursor: pointer; cursor: pointer;
outline: none; }
input[type='file']:focus {
outline: initial;
} }
`} `}
</style> </style>

@ -73,6 +73,11 @@ function RandomImage(props) {
cursor: ${loading ? 'not-allowed' : 'pointer'}; cursor: ${loading ? 'not-allowed' : 'pointer'};
user-select: none; user-select: none;
} }
[role='button']:focus {
outline: none;
text-decoration: underline;
}
`} `}
</style> </style>
</div> </div>

Loading…
Cancel
Save