Add tooltips to Player Settings page.

This commit is contained in:
Chris Wilson 2020-08-26 23:57:24 -04:00
parent de93790882
commit 3b159632b5
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ const buildRangeSettings = (parentElement, settings) => {
optionName.className = 'option-name';
const optionLabel = document.createElement('label');
optionLabel.setAttribute('for', settingId);
optionLabel.setAttribute('data-tooltip', setting.description);
optionLabel.innerText = setting.friendlyName;
optionName.appendChild(optionLabel);
optionRow.appendChild(optionName);