UX: Welcome topic CTA adjustments (#18168)

* UX: Adjust welcome cta

* more

* FIX: Adjust test syntax
This commit is contained in:
Jordan Vidrine 2022-09-19 16:40:44 -05:00 committed by GitHub
parent 36aec7f546
commit a766bf8818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 19 deletions

View File

@ -1,9 +1,7 @@
<div class="welcome-topic-banner"> <div class="welcome-cta">
<div class="col-text"> <div class="welcome-cta__content">
<h1 class="title">{{i18n "welcome_topic_banner.title"}}</h1> <h1 class="welcome-cta__title">{{i18n "welcome_topic_banner.title"}}</h1>
<p class="description">{{i18n "welcome_topic_banner.description"}}</p> <p class="welcome-cta__description">{{i18n "welcome_topic_banner.description"}}</p>
</div>
<div class="col-button">
<DButton @class="btn-primary welcome-topic-cta" @action={{action "editWelcomeTopic"}} @label="welcome_topic_banner.button_title" />
</div> </div>
<DButton @class="btn-primary welcome-cta__button" @action={{action "editWelcomeTopic"}} @label="welcome_topic_banner.button_title" />
</div> </div>

View File

@ -8,9 +8,9 @@ acceptance("Welcome Topic Banner", function (needs) {
test("Navigation", async function (assert) { test("Navigation", async function (assert) {
await visit("/"); await visit("/");
assert.ok(exists(".welcome-topic-banner"), "has the welcome topic banner"); assert.ok(exists(".welcome-cta"), "has the welcome topic banner");
assert.ok( assert.ok(
exists("button.welcome-topic-cta"), exists("button.welcome-cta__button"),
"has the welcome topic edit button" "has the welcome topic edit button"
); );
}); });

View File

@ -250,21 +250,26 @@
} }
} }
.welcome-topic-banner { .container.list-container {
border: 1px solid var(--primary-low); position: relative;
}
.welcome-cta {
background-color: var(--secondary);
border: 1px solid var(--primary-low-mid);
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.12); box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.12);
padding: 10px; padding: 12px 20px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between;
.col-text { position: absolute;
top: 44px;
width: calc(100% - 40px);
z-index: z("usercard");
&__content {
width: 70%; width: 70%;
} }
.col-button { &__button {
width: 30%;
display: flex;
align-self: center; align-self: center;
justify-content: flex-end;
padding-right: 30px;
} }
} }