From 245f4760966cd6a958373fbaeb4f5ef6bbe7b91d Mon Sep 17 00:00:00 2001 From: Birm Date: Thu, 31 Oct 2024 13:55:35 -0400 Subject: [PATCH] style fixes to toolbar code --- components/toolbar/toolbar.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/components/toolbar/toolbar.js b/components/toolbar/toolbar.js index 0c7fce5b8..1495a8969 100644 --- a/components/toolbar/toolbar.js +++ b/components/toolbar/toolbar.js @@ -55,7 +55,7 @@ * */ -const camic_svg = ` +const camicSvg = ` -` +`; function CaToolbar(options) { this.name = 'CaToolbar'; @@ -191,12 +191,12 @@ CaToolbar.prototype.__createBtn = function(options) { const btn = document.createElement('i'); btn.classList.add('material-icons'); btn.classList.add('md-36'); - if (options.icon =="camic"){ - btn.innerHTML = camic_svg; - btn.classList.add("camic-logo"); - btn.title = "camic"; - btn.style.height = "36px" - btn.style.width = "36px" + if (options.icon =='camic') { + btn.innerHTML = camicSvg; + btn.classList.add('camic-logo'); + btn.title = 'camic'; + btn.style.height = '36px'; + btn.style.width = '36px'; } else { btn.textContent = options.icon; } @@ -256,11 +256,11 @@ CaToolbar.prototype.__createCheck = function(options) { const icon = document.createElement('label'); icon.classList.add('material-icons'); icon.classList.add('md-36'); - if (options.icon == "camic"){ - icon.innerHTML = camic_svg; - icon.title = "camic"; - icon.style.height = "36px" - icon.style.width = "36px" + if (options.icon == 'camic') { + icon.innerHTML = camicSvg; + icon.title = 'camic'; + icon.style.height = '36px'; + icon.style.width = '36px'; } else { icon.textContent = options.icon; } @@ -567,10 +567,10 @@ CaToolbar.prototype.__createDropDown = function(options) { const icon = document.createElement('label'); icon.classList.add('material-icons'); icon.classList.add('md-36'); - if (options.ariaLabel){ + if (options.ariaLabel) { icon.ariaLabel = options.ariaLabel; icon.title = options.ariaLabel; - } + } icon.textContent = options.icon; icon.htmlFor = id; if (options.title) {