@gravity-ui/page-constructor 1.17.0 → 1.18.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.18.0](https://github.com/gravity-ui/page-constructor/compare/v1.17.0...v1.18.0) (2023-02-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * monochrome mixin moved from 'Button.css' to 'mixins.css' ([#173](https://github.com/gravity-ui/page-constructor/issues/173)) ([6bb35cf](https://github.com/gravity-ui/page-constructor/commit/6bb35cfea50f7c62682404da02f594dd4f90a011))
9
+
3
10
  ## [1.17.0](https://github.com/gravity-ui/page-constructor/compare/v1.16.4...v1.17.0) (2023-02-28)
4
11
 
5
12
 
@@ -1,3 +1,5 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
1
3
  .pc-button-block__content {
2
4
  display: flex;
3
5
  align-items: center;
@@ -1,3 +1,5 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
1
3
  .pc-button-block__content {
2
4
  display: flex;
3
5
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -480,3 +480,13 @@ unpredictable css rules order in build */
480
480
  color: var(--yc-color-text-link);
481
481
  }
482
482
  }
483
+
484
+ @mixin monochromeButton() {
485
+ --yc-button-background-color: var(--pc-monochrome-button-background-color);
486
+ --yc-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
487
+ color: var(--pc-monochrome-button-color);
488
+
489
+ &:hover {
490
+ color: var(--pc-monochrome-button-color);
491
+ }
492
+ }