Skip to content

Commit 609117f

Browse files
committed
fixed focus state of a few elements
1 parent d5e8e0d commit 609117f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/selenium-ide/src/neo/components/ActionButtons/More/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import classNames from "classnames";
2222
export default class MoreButton extends React.Component {
2323
render() {
2424
return (
25-
<ActionButton tabIndex="-1" {...this.props} className={classNames("no-focus", "si-more", this.props.className)} />// eslint-disable-line react/prop-types
25+
<ActionButton tabIndex={this.props.canFocus ? "0" : "-1"} {...this.props} className={classNames({"no-focus": !this.props.canFocus}, "si-more", this.props.className)} />// eslint-disable-line react/prop-types
2626
);
2727
}
2828
}

packages/selenium-ide/src/neo/components/CommandForm/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import "./style.css";
6565
value={this.props.command ? this.props.command.value : ""}
6666
disabled={!this.props.command}
6767
onChange={this.props.command ? this.props.command.setValue : null} />
68-
<input type="submit" onClick={this.props.onSubmit} />
68+
<input tabIndex="-1" type="submit" onClick={this.props.onSubmit} />
6969
</form>
7070
</div>
7171
);

packages/selenium-ide/src/neo/components/ProjectHeader/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class ProjectHeader extends React.Component {
5858
<OpenButton onFileSelected={this.props.load} />
5959
<SaveButton data-place="left" unsaved={this.props.changed} onClick={this.props.save} />
6060
<ListMenu width={250} padding={-5} opener={
61-
<MoreButton />
61+
<MoreButton canFocus={true} />
6262
}>
6363
<ListMenuItem onClick={this.props.export}>Export to JavaScript code</ListMenuItem>
6464
</ListMenu>

0 commit comments

Comments
 (0)