update classes

This commit is contained in:
David Taylor 2025-01-06 18:46:08 +00:00
parent 1658c61287
commit bb4bdec3c8
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
4 changed files with 5 additions and 8 deletions

View File

@ -153,7 +153,7 @@
font-weight: normal;
font-size: $font-down-1;
}
.docs-topic-link {
.raw-topic-link {
color: var(--tertiary);
cursor: pointer;
display: inline-block;

View File

@ -25,7 +25,7 @@
.docs-topic-list {
flex-basis: 100%;
}
.docs-topic-link {
.raw-topic-link {
padding-right: 0.25em;
}
.docs-topic {

View File

@ -16,8 +16,8 @@ describe "Discourse Docs | Index", type: :system do
it "does not error when showing the index" do
visit("/docs")
expect(page).to have_css(".docs-topic-link", text: topic_1.title)
expect(page).to have_css(".docs-topic-link", text: topic_2.title)
expect(page).to have_css(".raw-topic-link", text: topic_1.title)
expect(page).to have_css(".raw-topic-link", text: topic_2.title)
end
describe "topic excerpts" do

View File

@ -57,10 +57,7 @@ acceptance("Docs", function (needs) {
assert.equal(query(".docs-category .docs-item-count").innerText, "119");
assert.equal(query(".docs-tag .docs-item-id").innerText, "something");
assert.equal(query(".docs-tag .docs-item-count").innerText, "74");
assert.equal(
query(".docs-topic-link").innerText.trim(),
"Importing from Software X"
);
assert.dom(".raw-topic-link").hasText("Importing from Software X");
});
test("selecting a category", async function (assert) {