Skip to content

Commit

Permalink
fix: Announcement desing (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Aug 31, 2023
1 parent 1b37c99 commit 45844d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/web/components/InfoMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class InfoMessage extends PureComponent {

return (
<div className={infoMessageClass}>
<span className='icon-alert'>
<span className={`icon-alert ${this.props.infoMessageClass} info-icon`}>
<Icon name='info' />
</span>
<div className={titleDescClass}>
Expand All @@ -36,7 +36,7 @@ export default class InfoMessage extends PureComponent {
)}
{this.props.isClosable && (
<a onClick={this.props.close} className='mt-n2 mr-n2 pl-2'>
<span className='icon ion-md-close' />
<span className={`icon ion-md-close ${this.props.infoMessageClass} close-btn`}/>
</a>
)}
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/web/styles/new/_variables-new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ $alert-font-weight: 500;
$alert-font-size: $font-sm;
$alert-line-height: $line-height-sm;
$alert-color-dark: $white-alpha-48;
$alert-announcement-close-btn: $text-icon-light-grey;

//Tabs
$tab-btn-line-height: 42px;
Expand Down
13 changes: 13 additions & 0 deletions frontend/web/styles/project/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
flex-direction: column;
justify-content: flex-start;
}
.close-btn {
margin-top: -3px;
font-size: 20px;
color: $alert-announcement-close-btn;
}
.info-icon {
margin-top: 15px;
}
}

.dark {
Expand All @@ -83,6 +91,11 @@
color: $text-icon-light;
}
}
.announcement {
.close-btn {
color: $alert-color-dark;
}
}
}
.text-info {
color: $bt-brand-primary !important;
Expand Down

3 comments on commit 45844d2

@vercel
Copy link

@vercel vercel bot commented on 45844d2 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 45844d2 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on 45844d2 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.