homebridge-plugin-utils 1.15.1 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,14 +150,17 @@ export class webUiFeatureOptions {
150
150
  this.#configTable.innerHTML = "";
151
151
  this.webUiDeviceList = [];
152
152
 
153
- // Create our hover style for our sidebar.
154
- const sidebarHoverStyle = document.createElement("style");
153
+ // Create our override styles for things like hover for our sidebar and workarounds for Homebridge UI quirks.
154
+ const overrideStyles = document.createElement("style");
155
+
156
+ // We want to override the default colors that Homebridge UI might apply for table cells.
157
+ overrideStyles.innerHTML = "td { color: unset !important }";
155
158
 
156
159
  // We emulate the styles that Bootstrap uses when hovering over a table, accounting for both light and dark modes.
157
- sidebarHoverStyle.innerHTML = "@media (prefers-color-scheme: dark) { .hbup-hover td:hover { background-color: #212121; color: #FFA000 } }" +
160
+ overrideStyles.innerHTML += "@media (prefers-color-scheme: dark) { .hbup-hover td:hover { background-color: #212121; color: #FFA000 !important } }" +
158
161
  "@media (prefers-color-scheme: light) { .hbup-hover td:hover { background-color: #ECECEC; } }";
159
162
 
160
- document.head.appendChild(sidebarHoverStyle);
163
+ document.head.appendChild(overrideStyles);
161
164
 
162
165
  // Add our hover styles to the controllers and devices tables.
163
166
  controllersTable.classList.add("hbup-hover");
@@ -179,6 +182,7 @@ export class webUiFeatureOptions {
179
182
  }
180
183
 
181
184
  // Initialize our informational header.
185
+ document.getElementById("headerInfo").style.fontWeight = "bold";
182
186
  document.getElementById("headerInfo").innerHTML = "Feature options are applied in prioritized order, from global to device-specific options:" +
183
187
  "<br><i class=\"text-warning\">Global options</i> (lowest priority) &rarr; " +
184
188
  (this.#hasControllers ? "<i class=\"text-success\">Controller options</i> &rarr; " : "") +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-plugin-utils",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "displayName": "Homebridge Plugin Utilities",
5
5
  "description": "Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.",
6
6
  "author": {