pulsar-select-list 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/select.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulsar-select-list",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A general-purpose select list for use in Pulsar packages",
5
5
  "main": "select.js",
6
6
  "license": "MIT",
package/select.js CHANGED
@@ -1042,11 +1042,15 @@ function createTwoLineItem({ primary, secondary, icon }) {
1042
1042
  if (icon && icon.length > 0) {
1043
1043
  priLine.classList.add("icon", ...icon);
1044
1044
  }
1045
+
1046
+ const wrapper = document.createElement("span");
1047
+ wrapper.classList.add("primary-text");
1045
1048
  if (typeof primary === "string") {
1046
- priLine.textContent = primary;
1049
+ wrapper.textContent = primary;
1047
1050
  } else if (primary) {
1048
- priLine.appendChild(primary);
1051
+ wrapper.appendChild(primary);
1049
1052
  }
1053
+ priLine.appendChild(wrapper);
1050
1054
  li.appendChild(priLine);
1051
1055
 
1052
1056
  if (secondary !== undefined && secondary !== null) {