Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Add title tag #41

Merged
merged 6 commits into from
Jan 7, 2016
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
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Here are all of the available options and their defaults:
attr: {
role: 'button',
'aria-label': 'Show Password',
title: 'Show Password',
tabIndex: 0
}
},
Expand Down Expand Up @@ -270,7 +271,10 @@ Here are all of the available options and their defaults:
toggle: {
className: 'hideShowPassword-toggle-hide',
content: 'Hide',
attr: { 'aria-pressed': 'true' }
attr: {
'aria-pressed': 'true'
title: 'Hide Password',
}
}
},
hidden: {
Expand All @@ -280,7 +284,10 @@ Here are all of the available options and their defaults:
toggle: {
className: 'hideShowPassword-toggle-show',
content: 'Show',
attr: { 'aria-pressed': 'false' }
attr: {
'aria-pressed': 'false',
title: 'Show Password',
}
}
}
}
Expand Down
11 changes: 9 additions & 2 deletions hideShowPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
attr: {
role: 'button',
'aria-label': 'Show Password',
title: 'Show Password',
tabIndex: 0
}
},
Expand Down Expand Up @@ -162,7 +163,10 @@
toggle: {
className: 'hideShowPassword-toggle-hide',
content: 'Hide',
attr: { 'aria-pressed': 'true' }
attr: {
'aria-pressed': 'true',
title: 'Hide Password'
}
}
},
hidden: {
Expand All @@ -172,7 +176,10 @@
toggle: {
className: 'hideShowPassword-toggle-show',
content: 'Show',
attr: { 'aria-pressed': 'false' }
attr: {
'aria-pressed': 'false',
title: 'Show Password'
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion hideShowPassword.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.