Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 2955fe8

Browse files
jeff-phillips-18mcoker
authored andcommitted
feat(hint-block): Add hint-block css, test page, and regression test. (#1156)
1 parent be57e8f commit 2955fe8

File tree

9 files changed

+84
-0
lines changed

9 files changed

+84
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = [{
2+
removeSelectors: ['.page-header + .alert'],
3+
label: 'hint-block',
4+
url: 'dist/tests/hint-block.html',
5+
disabled: false
6+
}]
25 KB
Loading

src/less/hint-block.less

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.hint-block-pf {
2+
background-color: @color-pf-blue-50;
3+
color: @color-pf-blue-600;
4+
padding: 10px 15px 15px;
5+
.hint-block-pf-title {
6+
font-size: 16px;
7+
font-weight: 500;
8+
line-height: 1.1;
9+
margin-bottom: 10px;
10+
}
11+
.hint-block-pf-body {
12+
font-size: 13px;
13+
font-weight: 300;
14+
line-height: 1.4;
15+
}
16+
> .btn {
17+
margin-top: 30px;
18+
}
19+
}

src/less/patternfly-additions.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
@import "experimental-features.less";
5050
@import "filter.less";
5151
@import "footer.less";
52+
@import "hint-block.less";
5253
@import "icons.less";
5354
@import "infotip.less";
5455
@import "layouts.less";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.hint-block-pf {
2+
background-color: $color-pf-blue-50;
3+
color: $color-pf-blue-600;
4+
padding: 10px 15px 15px;
5+
.hint-block-pf-title {
6+
font-size: 16px;
7+
font-weight: 500;
8+
line-height: 1.1;
9+
margin-bottom: 10px;
10+
}
11+
.hint-block-pf-body {
12+
font-size: 13px;
13+
font-weight: 300;
14+
line-height: 1.4;
15+
}
16+
> .btn {
17+
margin-top: 30px;
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.hint-block-pf {
2+
background-color: $color-pf-blue-50;
3+
color: $color-pf-blue-600;
4+
padding: 10px 15px 15px;
5+
.hint-block-pf-title {
6+
font-size: 16px;
7+
font-weight: 500;
8+
line-height: 1.1;
9+
margin-bottom: 10px;
10+
}
11+
.hint-block-pf-body {
12+
font-size: 13px;
13+
font-weight: 300;
14+
line-height: 1.4;
15+
}
16+
> .btn {
17+
margin-top: 30px;
18+
}
19+
}

src/sass/converted/rcue/_patternfly-additions.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
@import 'experimental-features';
5050
@import 'filter';
5151
@import 'footer';
52+
@import 'hint-block';
5253
@import 'icons';
5354
@import 'infotip';
5455
@import 'layouts';

src/sass/static/_patternfly.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
@import 'patternfly/filter';
123123
@import 'patternfly/footer';
124124
@import 'patternfly/icons';
125+
@import 'patternfly/hint-block';
125126
@import 'patternfly/infotip';
126127
@import 'patternfly/layouts';
127128
@import 'patternfly/links';

tests/pages/hint-block.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
categories: [Widgets]
3+
layout: page
4+
title: Hint Block
5+
resource: true
6+
---
7+
<div class="hint-block-pf">
8+
<button type="button" class="close" aria-hidden="true" aria-label="Close">
9+
<span class="pficon pficon-close"></span>
10+
</button>
11+
<div class="hint-block-pf-title">Some Title</div>
12+
<div class="hint-block-pf-body">
13+
Something introductory. Some body text explaining the feature. Some body text explaining the feature. Some body text explaining the feature. Some body text explaining the feature. Some body text explaining the feature. Some body text explaining the feature.
14+
</div>
15+
<button class="btn btn-primary" type="button">
16+
Optional Action
17+
</button>
18+
</div>

0 commit comments

Comments
 (0)