Skip to content

Commit

Permalink
feat: now we have an official anchor active state
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Feb 11, 2019
1 parent 6a58154 commit 6de23ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import CodeBlock from 'Tags/CodeBlock'

<CodeBlock reactLive hideCode>
{`
<ul>
<ul data-dnb-test="anchor" className="dnb-unstyled-list">
<li>
<a href="/" >Default style</a>
<a href="/" >Default Style</a>
</li>
<li>
<a href="/" className="dnb-hover-style">Hover Style</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Screenshot Test
* This file will not run on "test:staged" because we dont require any related files
*/

import { testPageScreenshot } from '../../../core/jest/jestSetupScreenshots'

describe('Anchor screenshot', () => {
const url = '/uilib/elements/anchor?fullscreen'
it('have to match the default choice of anchor styles', async () => {
const screenshot = await testPageScreenshot({
url,
selector: '[data-dnb-test="anchor"]'
})
expect(screenshot).toMatchImageSnapshot()
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
border-bottom-width: 2px;
}
@mixin activeStyle() {
color: #fff;
color: var(--color-mint-green);
background-color: var(--color-sea-green);
border-bottom: none;
border-radius: 0;
Expand Down

0 comments on commit 6de23ea

Please sign in to comment.