mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
parent
2b2596a7bc
commit
229de1ec66
2 changed files with 4 additions and 4 deletions
|
@ -180,7 +180,7 @@ export class MenuListItem extends React.Component<IMenuListItemProps, {}> {
|
|||
|
||||
const role = this.props.hasNoRole
|
||||
? undefined
|
||||
: type === 'radio'
|
||||
: type === 'checkbox'
|
||||
? 'menuitemradio'
|
||||
: 'menuitem'
|
||||
const ariaChecked = type === 'checkbox' ? item.checked : undefined
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Button } from './lib/button'
|
|||
import { Octicon } from './octicons'
|
||||
import * as OcticonSymbol from './octicons/octicons.generated'
|
||||
import { MenuPane } from './app-menu'
|
||||
import { IRadioMenuItem, MenuItem } from '../models/app-menu'
|
||||
import { ICheckboxMenuItem, MenuItem } from '../models/app-menu'
|
||||
import { ClickSource, SelectionSource } from './lib/list'
|
||||
|
||||
export interface IDropdownSelectButtonOption {
|
||||
|
@ -272,8 +272,8 @@ export class DropdownSelectButton extends React.Component<
|
|||
options: ReadonlyArray<IDropdownSelectButtonOption>,
|
||||
checkedOptionId: string | undefined
|
||||
): ReadonlyArray<MenuItem> {
|
||||
const defaultCheckBoxMenuItem: IRadioMenuItem = {
|
||||
type: 'radio',
|
||||
const defaultCheckBoxMenuItem: ICheckboxMenuItem = {
|
||||
type: 'checkbox',
|
||||
id: '',
|
||||
label: '',
|
||||
checked: false,
|
||||
|
|
Loading…
Reference in a new issue