@controleonline/ui-common 1.2.123 → 1.2.125
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.
package/package.json
CHANGED
|
@@ -45,10 +45,13 @@ export default StyleSheet.create({
|
|
|
45
45
|
padding: 16,
|
|
46
46
|
},
|
|
47
47
|
modalPanel: {
|
|
48
|
+
alignSelf: 'center',
|
|
48
49
|
backgroundColor: '#FFFFFF',
|
|
49
50
|
borderRadius: 18,
|
|
50
51
|
maxHeight: '80%',
|
|
52
|
+
maxWidth: '100%',
|
|
51
53
|
overflow: 'hidden',
|
|
54
|
+
width: 480,
|
|
52
55
|
},
|
|
53
56
|
modalHeader: {
|
|
54
57
|
alignItems: 'center',
|
|
@@ -125,7 +125,7 @@ const BottomNavigationBar = ({
|
|
|
125
125
|
appearance,
|
|
126
126
|
appVersion: runtimeFooter?.appVersion,
|
|
127
127
|
colors: appearance === 'soft'
|
|
128
|
-
? {...runtimeFooter?.colors, footerBackground: colors.footerBackground, footerText: colors.footerText}
|
|
128
|
+
? {...runtimeFooter?.colors, footerBackground: colors.footerBackground, footerLabelInfo: colors.footerLabelInfo, footerText: colors.footerText}
|
|
129
129
|
: runtimeFooter?.colors || {},
|
|
130
130
|
mainCompany: runtimeFooter?.mainCompany,
|
|
131
131
|
device: runtimeFooter?.device,
|
|
@@ -38,6 +38,7 @@ const normalizeColor = value =>
|
|
|
38
38
|
/** Prefer theme colors, but never render text the same as the footer background. */
|
|
39
39
|
const resolveVisibleFooterTextColor = colors => {
|
|
40
40
|
const candidates = [
|
|
41
|
+
colors?.footerLabelInfo,
|
|
41
42
|
colors?.footerText,
|
|
42
43
|
colors?.textSecondary,
|
|
43
44
|
colors?.text,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import test from 'node:test';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
|
|
5
|
+
const styles = fs.readFileSync(
|
|
6
|
+
new URL('../../../react/components/AppTypeSwitcher.styles.js', import.meta.url),
|
|
7
|
+
'utf8',
|
|
8
|
+
).replace(/\r\n/g, '\n');
|
|
9
|
+
|
|
10
|
+
test('app type selector modal is 480px wide, centered and never wider than the screen (#1512)', () => {
|
|
11
|
+
const panel = /modalPanel: \{([^}]*)\}/.exec(styles)?.[1] || '';
|
|
12
|
+
assert.match(panel, /width: 480/);
|
|
13
|
+
assert.match(panel, /maxWidth: '100%'/);
|
|
14
|
+
assert.match(panel, /alignSelf: 'center'/);
|
|
15
|
+
});
|