Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove color-context JS in favor of color-scheme and light-dark() #2138

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from

Merge branch 'main' into poc/remove-color-context

a95f9d8
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

fix: remove color-context JS in favor of color-scheme and light-dark() #2138

Merge branch 'main' into poc/remove-color-context
a95f9d8
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Jan 24, 2025 in 0s

414 tests run, 2 skipped, 27 failed.

Annotations

Check failure on line 19 in elements/rh-badge/test/rh-badge.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
Raw output
TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
  at n.<anonymous> (elements/rh-badge/test/rh-badge.spec.ts:19:19)

Check failure on line 249 in elements/rh-footer/test/rh-footer.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected 16 to equal 32
Raw output
AssertionError: expected 16 to equal 32
  at n.<anonymous> (elements/rh-footer/test/rh-footer.spec.ts:249:124)

Check failure on line 224 in elements/rh-navigation-secondary/test/rh-navigation-secondary.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected 'rgba(0, 0, 0, 0)' to equal 'rgb(56, 56, 56)'
Raw output
AssertionError: expected 'rgba(0, 0, 0, 0)' to equal 'rgb(56, 56, 56)'
  at n.<anonymous> (elements/rh-navigation-secondary/test/rh-navigation-secondary.spec.ts:224:87)

Check failure on line 49 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:49:33)

Check failure on line 69 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:69:26)

Check failure on line 77 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:77:28)

Check failure on line 97 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:97:32)

Check failure on line 105 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:105:34)

Check failure on line 114 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:114:34)

Check failure on line 122 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:122:36)

Check failure on line 97 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:97:32)

Check failure on line 105 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:105:34)

Check failure on line 114 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:114:34)

Check failure on line 122 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:122:36)

Check failure on line 97 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:97:32)

Check failure on line 105 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:105:34)

Check failure on line 114 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:114:34)

Check failure on line 122 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:122:36)

Check failure on line 169 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:169:32)

Check failure on line 178 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:178:34)

Check failure on line 186 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:186:36)

Check failure on line 169 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:169:32)

Check failure on line 178 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:178:34)

Check failure on line 186 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'dark'
Raw output
AssertionError: expected undefined to equal 'dark'
  at n.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:186:36)

Check failure on line 169 in elements/rh-surface/test/rh-surface.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

expected undefined to equal 'light'
Raw output
AssertionError: expected undefined to equal 'light'
  at Ka.<anonymous> (elements/rh-surface/test/rh-surface.spec.ts:169:32)