chore: 🤖 remove rose::nav::breadcrumbs (#2750)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16790
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2025-03-28 11:27:43 -07:00
1 parent b4d9cd5bb7
commit 69d127a89e
5 files changed
-86

No files matched your search

@@ -1,8 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<nav ...attributes class='rose-nav-breadcrumbs' aria-label='breadcrumbs'>
{{yield (hash link=(component 'rose/nav/link'))}}
</nav>
@@ -1,6 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
export { default } from 'rose/components/rose/nav/breadcrumbs';
@@ -1,40 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
@use '../../variables/sizing';
@use '../../utilities/type';
.rose-nav-breadcrumbs {
@include type.type(s, normal);
display: flex;
flex-wrap: wrap;
.rose-nav-link {
--color: var(--ui-gray);
color: var(--color);
text-decoration: none;
cursor: pointer;
display: inline-flex;
&::after {
content: '\002F'; // "/"
margin: 0 sizing.rems(xs);
}
&:hover {
--color: var(--action);
&::after {
color: var(--ui-gray);
}
}
&:last-child::after {
content: '';
}
}
}
@@ -5,4 +5,3 @@
@import 'sidebar';
@import 'tabs';
@import 'breadcrumbs';
@@ -1,31 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find, findAll } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/nav/breadcrumbs', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
await render(hbs`<Rose::Nav::Breadcrumbs />`);
assert.ok(find('.rose-nav-breadcrumbs'));
});
test('it renders with attributes', async function (assert) {
await render(hbs`<Rose::Nav::Breadcrumbs id="breadcrumbs"/>`);
assert.ok(find('#breadcrumbs'));
});
test('it renders with breadcrumb links', async function (assert) {
await render(hbs`<Rose::Nav::Breadcrumbs as |breadcrumbs|>
<breadcrumbs.link @route="index" />
<breadcrumbs.link @route="index" />
</Rose::Nav::Breadcrumbs>`);
assert.strictEqual(findAll('.rose-nav-link').length, 2);
});
});