Skip to content

Commit

Permalink
feat: support button changes in uikit 6.11.0 (#227)
Browse files Browse the repository at this point in the history
* feat: support button changes in uikit 6.11.0

* chore: apply lint rules
  • Loading branch information
teleginzhenya authored Apr 17, 2024
1 parent c60f72e commit cdbc022
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 39 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"@gravity-ui/prettier-config": "1.1.0",
"@gravity-ui/stylelint-config": "4.0.1",
"@gravity-ui/tsconfig": "1.0.0",
"@gravity-ui/uikit": "6.1.1",
"@gravity-ui/uikit": "6.11.0",
"@storybook/addon-essentials": "^7.1.1",
"@storybook/cli": "^7.1.1",
"@storybook/preset-scss": "1.0.3",
Expand Down Expand Up @@ -246,7 +246,7 @@
"@diplodoc/mermaid-extension": "^1.0.0",
"@diplodoc/transform": "^4.5.0",
"@gravity-ui/components": "^3.0.0",
"@gravity-ui/uikit": "^6.0.0",
"@gravity-ui/uikit": "^6.11.0",
"highlight.js": "^11.8.0",
"katex": "^0.16.9",
"lodash": "^4.17.20",
Expand Down
3 changes: 2 additions & 1 deletion src/bundle/YfmEditorView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
background: var(--g-color-line-generic);
}

// TODO: fixme
.ye-toolbar-list-button_arrow {
--g-button-icon-offset: 0px;
--g-button-padding: 2px;
width: 42px;
}

Expand Down
17 changes: 2 additions & 15 deletions src/bundle/toolbar/ToolbarButtonWithPopupMenu.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
@import '~@gravity-ui/uikit/styles/mixins';

.ye-toolbar-button-with-popup-menu {
// TODO: FIXME
// button with 2 icons
// 42px width
--g-button-icon-offset: 0px;
--g-button-padding: 2px;
width: 42px;

.g-button__text.g-button__text.g-button__text {
margin: 0px 21px;
}

.g-button__icon_side_start {
left: -1px;
}

.g-button__icon_side_end {
right: -1px;
}

&__menu-group {
.g-menu__group-label {
color: var(--g-color-text-hint);
Expand Down
14 changes: 2 additions & 12 deletions src/toolbar/ToolbarListButton.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
.ye-toolbar-list-button {
&_arrow {
--g-button-icon-offset: 0px;
--g-button-padding: 2px;
width: 42px;

.g-button__text.g-button__text.g-button__text {
margin: 0px 21px;
}

.g-button__icon_side_start {
left: -1px;
}

.g-button__icon_side_end {
right: -1px;
}
}

&__item {
Expand Down

0 comments on commit cdbc022

Please sign in to comment.