@opengeoweb/theme 2.1.1 → 2.1.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
|
@@ -97,7 +97,7 @@ export const Wrapper: React.FC = () => (
|
|
|
97
97
|
2. Use the style/color in your component. The theme palette can be found as `geowebColor` property inside the `theme.palette` of the MUI Theme
|
|
98
98
|
|
|
99
99
|
```javascript
|
|
100
|
-
const useStyles = makeStyles((theme) => ({
|
|
100
|
+
const useStyles = makeStyles((theme: Theme) => ({
|
|
101
101
|
button: {
|
|
102
102
|
border: theme.palette.geowebColors.buttons.flatMouseOver.border,
|
|
103
103
|
'&:hover': {
|
|
@@ -321,7 +321,7 @@ Contains demo stories with MUI components. Every story is build with the `StoryW
|
|
|
321
321
|
- The **Elevation** shows all elevations we currently have. These can be used for defining `box-shadow` for elements. If you want to use the elevation in code:
|
|
322
322
|
|
|
323
323
|
```javascript
|
|
324
|
-
const useStyles = makeStyles((theme) => ({
|
|
324
|
+
const useStyles = makeStyles((theme: Theme) => ({
|
|
325
325
|
header: {
|
|
326
326
|
boxShadow: theme.shadows[1], // elevation_01
|
|
327
327
|
},
|