@ni/ok-components 1.10.1 → 1.10.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.
@@ -3050,18 +3050,27 @@ const xv="nimble-anchored-region",Cv=It`
3050
3050
  }
3051
3051
 
3052
3052
  .icon {
3053
- width: 48px;
3054
- display: flex;
3055
- justify-content: center;
3056
- margin-top: 8px;
3053
+ display: none;
3054
+ margin: 8px ${Lc} 0 ${Nc};
3057
3055
  flex: 0 0 auto;
3058
3056
  opacity: 0.6;
3059
3057
  }
3060
3058
 
3059
+ :host([severity='error']) .icon,
3060
+ :host([severity='warning']) .icon,
3061
+ :host([severity='information']) .icon {
3062
+ display: flex;
3063
+ }
3064
+
3061
3065
  .text {
3062
3066
  display: inline;
3063
- margin-top: 7px;
3064
- margin-bottom: 7px;
3067
+ margin: 7px 0 7px ${Nc};
3068
+ }
3069
+
3070
+ :host([severity='error']) .text,
3071
+ :host([severity='warning']) .text,
3072
+ :host([severity='information']) .text {
3073
+ margin-left: 0;
3065
3074
  }
3066
3075
 
3067
3076
  slot[name='title'] {
@@ -3092,14 +3101,20 @@ const xv="nimble-anchored-region",Cv=It`
3092
3101
  white-space: nowrap;
3093
3102
  }
3094
3103
 
3104
+ :host([prevent-dismiss]) slot[name='action'] {
3105
+ margin-right: 12px;
3106
+ }
3107
+
3095
3108
  slot[name='action']::slotted(nimble-anchor) {
3096
3109
  font-size: 12.8px;
3097
3110
  }
3098
3111
 
3099
3112
  .dismiss {
3100
- width: 48px;
3101
- display: flex;
3102
- justify-content: center;
3113
+ margin: 0 12px 0 ${Nc};
3114
+ }
3115
+
3116
+ :host([prevent-dismiss]) .dismiss {
3117
+ display: none;
3103
3118
  }
3104
3119
  `.withBehaviors(Eh(Wo,It`
3105
3120
  :host {