mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
yay
This commit is contained in:
@@ -11,7 +11,7 @@ const SmallButton = styled(Button)`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function MultiButtonToggle({ buttons, value, onChange }) {
|
function MultiButtonToggle({ buttons, value, onChange, }) {
|
||||||
const setValue = newValue => {
|
const setValue = newValue => {
|
||||||
if (value !== newValue) {
|
if (value !== newValue) {
|
||||||
onChange(newValue);
|
onChange(newValue);
|
||||||
@@ -24,6 +24,7 @@ function MultiButtonToggle({ buttons, value, onChange }) {
|
|||||||
buttons.map(([buttonValue, buttonLabel]) => (
|
buttons.map(([buttonValue, buttonLabel]) => (
|
||||||
<SmallButton
|
<SmallButton
|
||||||
aria-label={buttonLabel}
|
aria-label={buttonLabel}
|
||||||
|
ouiaId={`button-label-${buttonLabel}`}
|
||||||
key={buttonLabel}
|
key={buttonLabel}
|
||||||
className={`toggle-button-${buttonValue}`}
|
className={`toggle-button-${buttonValue}`}
|
||||||
onClick={() => setValue(buttonValue)}
|
onClick={() => setValue(buttonValue)}
|
||||||
|
|||||||
Reference in New Issue
Block a user