Skip to content

Commit

Permalink
feat: FormStatus's cursor will be inherit when used in a button
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Oct 11, 2021
1 parent 55bdaac commit 2a3fcb4
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@ exports[`Autocomplete scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,8 @@ exports[`Button scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ legend.dnb-form-label {
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,8 @@ exports[`DatePicker scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,8 @@ exports[`Dropdown scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ exports[`FormStatus scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
padding: 0.625rem 1rem;

cursor: text;
button & {
cursor: inherit;
}
color: inherit;
line-height: var(--line-height-small);
font-size: var(--font-size-small);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ exports[`GlobalError scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ exports[`GlobalStatus scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ exports[`InputMasked scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,8 @@ exports[`Input scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,8 @@ exports[`Modal scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,8 @@ exports[`Pagination scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ legend.dnb-form-label {
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ exports[`Slider scss have to match snapshot 1`] = `
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ legend.dnb-form-label {
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ legend.dnb-form-label {
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1918,6 +1918,8 @@ legend.dnb-form-label {
line-height: var(--line-height-small);
font-size: var(--font-size-small);
white-space: normal; }
button .dnb-form-status__text {
cursor: inherit; }
.dnb-form-status__text .dnb-anchor {
font-size: inherit; }
.dnb-icon + .dnb-form-status__text {
Expand Down

0 comments on commit 2a3fcb4

Please sign in to comment.