Skip to content

Commit

Permalink
make focus visible for prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Oct 11, 2022
1 parent 0841bf3 commit 7ff59cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="buttonTitle"
tabindex="0"
role="listbox"
@keypress="handleIconKeyPress($event)"
@keydown="handleIconKeyPress($event)"
>
{{ title }}
<font-awesome-icon
Expand Down
7 changes: 1 addition & 6 deletions src/renderer/components/ft-prompt/ft-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ export default Vue.extend({
optionValues: {
type: Array,
default: () => { return [] }

}
},
mounted: function () {
setTimeout(() => {
document.querySelector('.prompt')
.querySelectorAll('button')[0]
.focus()
})
document.querySelector('.prompt button').focus({ focusVisible: true })
},
methods: {
removeWhitespace,
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/ft-select/ft-select.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Vue from 'vue'
import FtTooltip from '../ft-tooltip/ft-tooltip.vue'
import { removeWhitespace } from '../../helpers/accessibility'

export default Vue.extend({
name: 'FtSelect',
components: {
Expand Down

0 comments on commit 7ff59cb

Please sign in to comment.