This web component is intended to be used with the red_hat_comments
Drupal module.
This component had a rocky development process and is a bit different from working on most components. It's recommended to develop on this with a local Drupal environment, possibly many Drupal development environments.
Getting Started
See CP Elements Docs for general instructions getting setup, there's helpful info about getting your environment setup and other helpful information.
To get a proper dev setup get CP-comments setup in a Drupal environment:
Compiling
From inside this folder run:
npm run dev
From CP Elements git root run:
# Only watches and compiles CP-Comments and it's dependencies
npm run dev cp-comments
# Or this command that launches a web server and watches/compiles all components:
npm start
The web server is not helpful for CP Elements at time of writing, it only works well in a Drupal context.
Dependencies
- PFelement base class
- pfe-avatar
- pfe-button
- pfe-icon
- pfe-markdown
CSS Variables
--cp-comments__loader__color | #ccc | Color of the loading spinner |