style_widgets: Change webexercises widget style

View source: R/webexercises_fns.R

style_widgetsR Documentation

Change webexercises widget style

Description

Change webexercises widget style

Usage

style_widgets(
  incorrect = "#983E82",
  correct = "#59935B",
  highlight = "#467AAC"
)

Arguments

incorrect

The colour of the widgets when the answer is incorrect (defaults to pink #983E82).

correct

The colour of the widgets when the correct answer not filled in (defaults to green #59935B).

highlight

The colour of the borders around hidden blocks and checked sections (defaults to blue #467AAC).

Details

Call this function in an RMarkdown document to change the feedback colours using R colour names (see 'colours()') or any valid CSS colour specification (e.g., red, rgb(255,0,0), hsl(0, 100

If you want more control over the widget styles, please edit the webex.css file directly.

Value

A character string containing HTML code to change the CSS style values for widgets.

Examples

style_widgets("goldenrod", "purple")

webexercises documentation built on May 31, 2023, 8:16 p.m.