@eturnity/eturnity_reusable_components 7.45.5-EPDM-11313-EPDM-11314.0 → 7.45.5-EPDM-11313-EPDM-11314.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.45.5-EPDM-11313-EPDM-11314.0",
3
+ "version": "7.45.5-EPDM-11313-EPDM-11314.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -104,17 +104,21 @@
104
104
  return this.type === 'warning'
105
105
  },
106
106
  presetStyles() {
107
- let stylesCollection = {}
107
+ // the types that doesn't have explicit border anyway have it transparent
108
+ // to avoid flickering in case the same info card would switch the types
109
+ let stylesCollection = {
110
+ alignItems: 'flex-start',
111
+ padding: '20px',
112
+ borderWidth: '1px',
113
+ borderStyle: 'solid',
114
+ borderColor: 'transparent',
115
+ }
108
116
 
109
117
  if (this.isWarning) {
110
- stylesCollection.alignItems = 'center'
111
- stylesCollection.padding = '6px 10px'
112
118
  stylesCollection.color = theme.colors.white
113
119
  stylesCollection.backgroundColor = theme.colors.yellow
114
120
  stylesCollection.iconColor = theme.colors.white
115
121
  } else {
116
- stylesCollection.padding = '20px'
117
- stylesCollection.borderWidth = '1px'
118
122
  stylesCollection.borderStyle = 'dashed'
119
123
  stylesCollection.borderColor = theme.colors.grey4
120
124
  }