Skip to content

Commit 5238955

Browse files
authored
Merge pull request #711 from devtron-labs/feat/banner
chore: Added Button variant as Neutral white & white & Updated Icons for banner
2 parents 5fc74eb + b79df4a commit 5238955

22 files changed

+119
-164
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.13.0-pre-0",
3+
"version": "1.13.0-pre-1",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Assets/IconV2/ic-disconnect.svg

Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-gift.svg

Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-gitlab.svg

Lines changed: 9 additions & 9 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/Shared/Components/AnnouncementBanner/AnnouncementBanner.tsx

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/Shared/Components/AnnouncementBanner/index.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Shared/Components/Button/button.scss

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
@if ($color) {
8181
color: $color;
82-
82+
8383
@include svg-styles($color);
8484
}
8585
}
@@ -216,6 +216,14 @@
216216
&--neutral {
217217
@include button-variant-styles($background, var(--N700), $border-color);
218218
}
219+
220+
&--neutral-n0 {
221+
@include button-variant-styles($background, var(--N0), $border-color);
222+
}
223+
224+
&--neutral-white {
225+
@include button-variant-styles($background, var(--white), $border-color);
226+
}
219227
}
220228

221229
// Pseudo states for border-less button
@@ -243,6 +251,14 @@
243251
&--neutral {
244252
@include pseudo-states(var(--N100), var(--N200));
245253
}
254+
255+
&--neutral-n0 {
256+
@include pseudo-states(var(--N000), var(--N100));
257+
}
258+
259+
&--neutral-white {
260+
@include pseudo-states(var(--white), var(--N100));
261+
}
246262
}
247263

248264
// Overrides for text button
@@ -253,7 +269,9 @@
253269
&--negative-grey,
254270
&--positive,
255271
&--warning,
256-
&--neutral {
272+
&--neutral,
273+
&--neutral-n0,
274+
&--neutral-white {
257275
padding: 0 !important;
258276
min-width: 0 !important;
259277
border: none;
@@ -279,4 +297,4 @@
279297
text-decoration: none;
280298
}
281299
}
282-
}
300+
}

0 commit comments

Comments
 (0)