This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before we add our component to the DOM | |
// we are going to alter the rh-cta definition | |
// this will alter the stylesheet for all CTAs | |
await customElements.whenDefined('rh-cta').then(() => { | |
const RhCta = customElements.get('rh-cta'); | |
if (!RhCta) { return; } | |
const styles = RhCta.styles?.[0].styleSheet as CSSStyleSheet; | |
styles.insertRule(` | |
::slotted(a) { white-space: normal !important; } | |
`, styles.cssRules.length); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Product Lifecycle | |
initializing* | |
INITIALIZED -> initialized | |
ERROR -> error | |
initialized& | |
list | |
listEmpty* | |
listSome | |
listFull | |
SELECT -> selecting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schemaVersion": "1.0.0", | |
"readme": "", | |
"modules": [ | |
{ | |
"kind": "javascript-module", | |
"path": "rh-alert/rh-alert.js", | |
"declarations": [ | |
{ | |
"kind": "class", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An async queue that can stream existing values | |
* and stream new values as they are added using | |
* async generators and async iterators. | |
* | |
* @example | |
* | |
* const counter = new AsyncQueue<number>(); | |
* counter.add(1); | |
* counter.add(2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { html, fixture, expect, fixtureCleanup, aTimeout } from '@open-wc/testing/index-no-side-effects.js'; | |
import '@open-wc/testing/register-chai-plugins.js'; | |
import { visualDiff } from '@web/test-runner-visual-regression'; | |
import { setViewport } from '@web/test-runner-commands'; | |
import type { RhptMyTrialsApp } from '../src/rhpt-my-trials-app.js'; | |
import { globalMachine } from '../src/machines/globalMachine.js'; | |
import { initializerMachine } from '../src/machines/initializerMachine.js'; | |
import '../src/rhpt-my-trials-app.js'; | |
import { trials } from '../src/machines/mocks/trials.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* Via pfe-base.css */ | |
:is(rh-footer, rh-global-footer) a { | |
color: var(--rh-color-link-inline-on-dark, var(--rh-color-blue-200, #73bcf7)); | |
text-decoration: none; | |
} | |
:is(rh-footer, rh-global-footer) a:hover { | |
color: var(--rh-color-link-inline-hover-on-dark, var(--rh-color-blue-100, #bee1f4)); | |
text-decoration: underline; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="/rhds-lightdom.css" rel="stylesheet"> | |
</head> | |
<body> | |
<rh-global-footer> | |
<h3 slot="links-primary" data-analytics-text="Red Hat legal and privacy links" hidden>Red Hat legal and privacy links</h3> | |
<ul slot="links-primary" data-analytics-region="page-footer-bottom-primary"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query ($issue_id: ID!) { | |
node(id: $issue_id) { | |
__typename | |
... on Issue { | |
id | |
title | |
number | |
projectV2(number: 1) { | |
id | |
items(first: 100) { |
NewerOlder