@loadsmart/loadsmart-ui 5.15.1 → 5.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/loadsmart-ui",
3
- "version": "5.15.1",
3
+ "version": "5.15.2",
4
4
  "description": "Miranda UI, a React UI library",
5
5
  "main": "dist",
6
6
  "files": [
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef } from 'react'
2
- import styled from 'styled-components'
2
+ import styled, { css } from 'styled-components'
3
3
 
4
4
  import { getToken as token } from 'theming'
5
5
  import { Icon } from 'components/Icon'
@@ -105,7 +105,13 @@ const BaseStyledButton = styled.button<{
105
105
 
106
106
  ${disableable()}
107
107
 
108
- ${({ $loading }) => $loading && 'pointer-events: none;'}
108
+ ${({ $loading }) =>
109
+ $loading
110
+ ? css`
111
+ pointer-events: none;
112
+ position: relative;
113
+ `
114
+ : ''}
109
115
 
110
116
  ${Leading} {
111
117
  margin: 0 ${token('space-xs')} 0 0;