Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class Panel extends BaseComponent<IPanelProps, IPanelState> {
<IconButton
className={ css('ms-Panel-closeButton ms-PanelAction-close', styles.closeButton) }
onClick={ this._onPanelClick }
aria-label={ closeButtonAriaLabel }
ariaLabel={ closeButtonAriaLabel }
data-is-visible={ true }
iconProps={ { iconName: 'Cancel' } }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class PanelSmallRightExample extends React.Component<any, any> {
type={ PanelType.smallFixedFar }
onDismiss={ this._onClosePanel }
headerText='Panel - Small, right-aligned, fixed, with footer'
closeButtonAriaLabel='Close'
onRenderFooterContent={ () => {
return (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ export class SelectionZone extends BaseComponent<ISelectionZoneProps, {}> {
// For toggle elements, assuming they are rendered as buttons, they will generate a click event,
// so we can no-op for any keydowns in this case.
break;
} else if (target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT') {
} else if ((ev.which === KeyCodes.enter || ev.which === KeyCodes.space) &&
(target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT')) {
return false;
} else if (target === itemRoot) {
if (ev.which === KeyCodes.enter) {
Expand Down