fleetcor-lwc 1.4.1 → 1.4.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.
package/README.md CHANGED
@@ -129,6 +129,11 @@ $FLT_BUTTON_LINK_HOVER_COLOR: var(--flt-button-link-hover-color, #6b7280);
129
129
 
130
130
  ## Release Notes:
131
131
 
132
+ - v.1.4.2
133
+ - Bug fix selectors conflicts
134
+
135
+ ---
136
+
132
137
  - v.1.4.1
133
138
  - Bug fix with empty content and svg max width
134
139
 
@@ -1,11 +1,11 @@
1
1
  <template lwc:render-mode="light">
2
- <div class="tooltip" onmouseover={over} ontouchstart={over} onmouseout={out} ontouchend={out}>
2
+ <div class="flt-tooltip" onmouseover={over} ontouchstart={over} onmouseout={out} ontouchend={out}>
3
3
  <slot></slot>
4
4
  <div if:true={content} class={tooltipVisibility} style={conentStyle}>
5
- <svg class="tooltip__svg" height={svgH} width={svgW} style={svgStyle}>
6
- <path class="tooltip__path" d={svgD}></path>
5
+ <svg class="flt-tooltip__svg" height={svgH} width={svgW} style={svgStyle}>
6
+ <path class="flt-tooltip__path" d={svgD}></path>
7
7
  </svg>
8
- <p class="tooltip__text" style={textStyle}></p>
8
+ <p class="flt-tooltip__text" style={textStyle}></p>
9
9
  </div>
10
10
  </div>
11
11
  </template>
@@ -56,7 +56,7 @@ export default class Tooltip extends LightningElement {
56
56
  }
57
57
 
58
58
  get tooltipVisibility() {
59
- return this.active ? 'tooltip__content tooltip__content_visible' : 'tooltip__content'
59
+ return this.active ? 'flt-tooltip__content flt-tooltip__content_visible' : 'flt-tooltip__content'
60
60
  }
61
61
 
62
62
  get svgD() {
@@ -207,7 +207,7 @@ export default class Tooltip extends LightningElement {
207
207
 
208
208
  update() {
209
209
  if (this.content) {
210
- const text = this.firstChild.querySelector('.tooltip__text')
210
+ const text = this.firstChild.querySelector('.flt-tooltip__text')
211
211
  text.innerHTML = this.content
212
212
  this.createTooltip()
213
213
  }
@@ -232,7 +232,7 @@ export default class Tooltip extends LightningElement {
232
232
 
233
233
  createTooltip() {
234
234
  // 1. find width of tooltip
235
- const text = this.firstChild.querySelector('.tooltip__text')
235
+ const text = this.firstChild.querySelector('.flt-tooltip__text')
236
236
  this.minimalWidth = getLineWidth(text)
237
237
  if (this.minimalWidth < this.maxWidth) {
238
238
  this.minimalWidth = this.minimalWidth + this.paddingX * 2 + 2 * this.delta
@@ -1,7 +1,7 @@
1
1
  @import './../../../common/mixins_aquamarine';
2
2
  /* mixins */
3
3
 
4
- .tooltip {
4
+ .flt-tooltip {
5
5
  display: inline-block;
6
6
  cursor: pointer;
7
7
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetcor-lwc",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "LWC framework by Fleetcor",
5
5
  "repository": {
6
6
  "type": "git",