Skip to content

Commit

Permalink
[Redesign add agent] Dark mode (#5620)
Browse files Browse the repository at this point in the history
* remove custom color styles to make the elastic dark mode work by default on the agent registration page

* add development for images to have dark mode in the section deploy a new agent

* changelog about dark mode

* Cleaning console.log from assets file

* Adding suggested style modifications in the agent registration section

* add a style hint so that text cannot be selected on cards

* add suggested changes to the styles in the register an agent section

* correction added to the word wizard

* added coding enhancements in the agent registration section

* adding an enhancement to eliminate the console error

* adding an enhancement to eliminate the console error
  • Loading branch information
chantal-kelm authored Jun 28, 2023
1 parent 11a462d commit 1c31e45
Show file tree
Hide file tree
Showing 20 changed files with 236 additions and 148 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ All notable changes to the Wazuh app project will be documented in this file.

### Added

- Added development so that the images of the new agent deployment page also have dark mode. [5620](https://github.com/wazuh/wazuh-kibana-app/pull/5620)

### Changed

- Changed the deploy a new agent page from step one to step three. [#5554](https://github.com/wazuh/wazuh-kibana-app/pull/5554) [5462](https://github.com/wazuh/wazuh-kibana-app/pull/5462)
- Removed the custom colors that did not allow to activate the default dark mode of elastic. [5620](https://github.com/wazuh/wazuh-kibana-app/pull/5620)

### Fixed

Expand Down
3 changes: 3 additions & 0 deletions public/assets/images/themes/dark/linux-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/assets/images/themes/dark/mac-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/assets/images/themes/dark/windows-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/assets/images/themes/light/linux-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/assets/images/themes/light/mac-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/assets/images/themes/light/windows-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const GroupInput = ({ value, options, onChange }) => {
fontWeight: 700,
fontSize: '12px',
lineHeight: '20px',
color: '#343741',
}}
>
Select one or more existing groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const OptionalsInputs = (props: OptionalsInputsProps) => {
fontWeight: 700,
fontSize: '12px',
lineHeight: '20px',
color: '#343741',
}}
>
Assign an agent name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
display: flex;
flex-direction: row-reverse;
align-items: center;
justify-content: center;
justify-content: left;
}

.checkbox-group-container.single-architecture {
Expand All @@ -28,7 +28,7 @@
.checkbox-item {
display: flex;
flex-direction: row-reverse;
// justify-content: start;
justify-content: left;
align-self: baseline;
}
}
Expand All @@ -38,11 +38,9 @@
font-style: normal;
font-weight: 400;
font-size: 12px;
color: #343741;
}
.first-card-four-items {
.checkbox-item:nth-child(n + 3) {
padding-top: 16px;
justify-content: center;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const CheckboxGroupComponent: React.FC<Props> = ({
idx === 0 || idx === 2 ? ' first-of-row' : ''
}`}
>
<span className='architecture-label'>{arch}</span>
<label className='architecture-label' htmlFor={arch}>
{arch}
</label>
<EuiRadioGroup
options={[{ id: `${arch}` }]}
idSelected={selectedOption}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.card {
height: 183px;

label {
cursor: pointer;
}
}

.cardTitle {
display: flex;
align-items: center;
margin-top: 28px;
justify-content: center;
user-select: none;
}

.cardIcon {
Expand All @@ -24,7 +30,6 @@
align-items: center;
text-align: center;
letter-spacing: 0.6px;
color: #343741;
}

.hr {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const OsCard = ({ onChange, value }: Props) => {
}
display='plain'
hasBorder
onClick={() => {}}
className='card'
>
{data.hr && <hr className='hr' />}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.container {
.register-agent-wizard-container {
box-sizing: border-box;
min-height: 1271px;
margin-top: 44px;
Expand All @@ -9,18 +9,19 @@
padding-right: 63px;
}

.title {
.register-agent-wizard-title {
margin-top: 51px;
margin-bottom: 51px;
font-style: normal;
font-weight: 400;
font-size: 30px;
line-height: 36px;
color: #343741;
display: flex;
justify-content: center;
}
.close {

.register-agent-wizard-close {
display: flex;
margin-top: 17px;
}
float: right;
}
Loading

0 comments on commit 1c31e45

Please sign in to comment.