logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

screen_reader_notice.js (340B)


  1. const ScreenReaderNotice = {
  2. props: {
  3. ariaLive: {
  4. type: String,
  5. default: 'assertive'
  6. }
  7. },
  8. data () {
  9. return {
  10. currentText: ''
  11. }
  12. },
  13. methods: {
  14. announce (text) {
  15. this.currentText = text
  16. setTimeout(() => { this.currentText = '' }, 1000)
  17. }
  18. }
  19. }
  20. export default ScreenReaderNotice