Skip to content

Commit 5ead27e

Browse files
authored
Merge pull request #9721 from elsamaryv/update-icons-to-carbon-gtl
Replace PatternFly icons with Carbon
2 parents eb64e20 + 152e548 commit 5ead27e

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

app/stylesheet/miq-data-table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
justify-content: flex-start;
105105
margin-top: -2px;
106106

107+
&.carbon-icons-style {
108+
width: 20px;
109+
height: 20px;
110+
min-width: 20px;
111+
max-height: 20px;
112+
margin: 2px 8px 2px 0;
113+
}
114+
107115
&.styled_icon {
108116
min-width: 20px;
109117
height: 20px;

lib/gtl_formatter.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ class GtlFormatter
3535
}.freeze
3636

3737
NORMALIZED_STATE_ICON = {
38-
'archived' => 'fa fa-archive',
39-
'orphaned' => 'ff ff-orphaned',
40-
'retired' => 'fa fa-clock-o',
41-
'non_operational' => 'fa fa-exclamation',
42-
'suspended' => 'pficon pficon-asleep',
43-
'standby' => 'pficon pficon-asleep',
44-
'paused' => 'pficon pficon-asleep',
45-
'disconnecting' => 'pficon pficon-unplugged',
46-
'image_locked' => 'pficon pficon-locked',
47-
'migrating' => 'pficon pficon-migration',
48-
'shelved' => 'pficon pficon-pending',
49-
'shelved_offloaded' => 'pficon pficon-pending',
50-
'reboot_in_progress' => 'pficon pficon-on',
51-
'wait_for_launch' => 'pficon pficon-asleep',
52-
'on' => 'pficon pficon-on',
53-
'never' => 'pficon pficon-off',
54-
'terminated' => 'pficon pficon-off',
55-
'off' => 'pficon pficon-off',
56-
'template' => 'pficon pficon-template',
57-
'powering_up' => 'pficon pficon-on',
58-
'powering_down' => 'pficon pficon-off',
59-
'unknown' => 'pficon pficon-unknown',
38+
'archived' => 'carbon--Box',
39+
'orphaned' => 'carbon--Unlink',
40+
'retired' => 'carbon--Time',
41+
'non_operational' => 'carbon--WarningSquare',
42+
'suspended' => 'carbon--Asleep',
43+
'standby' => 'carbon--Asleep',
44+
'paused' => 'carbon--Asleep',
45+
'disconnecting' => 'carbon--FlashOff',
46+
'image_locked' => 'carbon--Locked',
47+
'migrating' => 'carbon--Migrate',
48+
'shelved' => 'carbon--Hourglass',
49+
'shelved_offloaded' => 'carbon--Hourglass',
50+
'reboot_in_progress' => 'carbon--Power',
51+
'wait_for_launch' => 'carbon--Asleep',
52+
'on' => 'carbon--Power',
53+
'never' => 'carbon--Power',
54+
'terminated' => 'carbon--Power',
55+
'off' => 'carbon--Power',
56+
'template' => 'carbon--Template',
57+
'powering_up' => 'carbon--Power',
58+
'powering_down' => 'carbon--Power',
59+
'unknown' => 'carbon--Unknown',
6060
}.freeze
6161

6262
COLUMN_WITH_TIME = %w[

0 commit comments

Comments
 (0)