Skip to content

Commit

Permalink
add improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Dec 9, 2024
1 parent 6a968af commit 7744308
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/app/cdk/alert-message/alert-message.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>

<div>
<strong class="title">
<strong class="title orc-font-body">
<ng-content select="[title]"></ng-content>
</strong>
<div class="content orc-font-body-small">
Expand Down
18 changes: 8 additions & 10 deletions src/app/cdk/alert-message/alert-message.component.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
:host {
::ng-deep {
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0 0 8px 0 !important;
}
}
width: 100%;
display: inline-block;
}

.title {
::ng-deep * {
margin: 0;
}
line-height: 24px;
}

.content {
::ng-deep {
> :first-child {
margin-top: 8px;
}
}
line-height: 21px !important;
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/cdk/alert-message/alert-message.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { AlertType } from 'src/app/constants'
/**
* Use `title` and `content` attributes to display the message
* Use headings (h1, h2...) for the title
* Margin is set to `0 0 8px 0` for all headings
* Line height is also standardized
* Title is stripped of any margin, has 24px line height and is bold
* Content has `margin-top: 8px` on its first child if it has any, line height is 21px
*/
export class AlertMessageComponent {
@Input() type: AlertType = 'notice'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
box-sizing: border-box;
}

button {
margin-top: 8px;
}

.need-help {
margin-bottom: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ <h2 class="orc-font-body-large" i18n="@@developerTools.redirectUris">
</p>

<app-alert-message class="redirect-uri-notice">
<h4 title i18n="@@developerTools.pleaseNote">Please note</h4>
<h4
title
i18n="@@developerTools.pleaseNote"
class="orc-font-body-small"
>
Please note
</h4>
<ul content>
<li>
<ng-container i18n="@@developerTools.only"> Only</ng-container>
Expand Down

0 comments on commit 7744308

Please sign in to comment.