dce-reactkit 3.9.7 → 3.9.9

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.
@@ -2,5 +2,5 @@
2
2
  * Universal stylesheet
3
3
  * @author Gabe Abrams
4
4
  */
5
- declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n";
5
+ declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n\n/* Tooltip White Text */\n.tooltip .tooltip-inner {\n color: white !important;\n}\n";
6
6
  export default shared;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -94,7 +94,13 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
94
94
  }
95
95
  const monthName = getMonthName(month).full;
96
96
  // Year is start year +1 for each 12 months
97
- const year = (startYear + (Math.floor(unmoddedMonth / 12)));
97
+ let yearsToAdd = 0;
98
+ let monthsOfYearsToAdd = unmoddedMonth;
99
+ while (monthsOfYearsToAdd > 12) {
100
+ monthsOfYearsToAdd -= 12;
101
+ yearsToAdd += 1;
102
+ }
103
+ const year = startYear + yearsToAdd;
98
104
 
99
105
  // Figure out which days are allowed
100
106
  const days = [];
@@ -174,7 +180,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
174
180
  return (
175
181
  <div
176
182
  className="SimpleDateChooser d-inline-block"
177
- aria-label={`date chooser with selected date: ${month} ${day}, ${year}`}
183
+ aria-label={`date chooser with selected date: ${month}/${day}/${year}`}
178
184
  >
179
185
  {/* Month Chooser */}
180
186
  <select
@@ -18,6 +18,11 @@ const shared = `
18
18
  .tooltip {
19
19
  z-index: 9000000000 !important;
20
20
  }
21
+
22
+ /* Tooltip White Text */
23
+ .tooltip .tooltip-inner {
24
+ color: white !important;
25
+ }
21
26
  `;
22
27
 
23
28
  export default shared;