Skip to content

Commit 7c84458

Browse files
authored
Change subtle color (#4686)
1 parent 2c853c8 commit 7c84458

24 files changed

+66
-23
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3232

3333
- Fixes [#4557](https://github.com/microsoft/BotFramework-WebChat/issues/4557). Flipper buttons in carousels and suggested actions is now renamed to "next/previous" from "left/right", by [@compulim](https://github.com/compulim), in PR [#4646](https://github.com/microsoft/BotFramework-WebChat/pull/4646)
3434
- Fixes [#4652](https://github.com/microsoft/BotFramework-WebChat/issues/4652). Keyboard help screen, activity focus traps, and chat history terminator should not be hidden behind `aria-hidden` because they are focusable, by [@compulim](https://github.com/compulim), in PR [#4659](https://github.com/microsoft/BotFramework-WebChat/pull/4659)
35+
- Related to [#4650](https://github.com/microsoft/BotFramework-WebChat/issues/4650). Added automated accessibility check using [`axe-core`](https://npmjs.com/package/axe-core)
36+
- HTML test: changed contrast ratio in tests that use different background colors, by [@compulim](https://github.com/compulim), in PR [#XXX](https://github.com/microsoft/BotFramework-WebChat/pull/XXX)
3537

3638
### Changed
3739

__tests__/html/accessibility.adaptiveCard.withTapAction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
run(async function () {
1414
const store = testHelpers.createStore();
1515
const directLine = WebChat.createDirectLine({ token: await testHelpers.token.fetchDirectLineToken() });
16-
const baseProps = { directLine, store };
16+
const baseProps = { directLine, store, styleOptions: { subtle: '#666' } };
1717
const webChatElement = document.getElementById('webchat');
1818

1919
WebChat.renderWebChat(baseProps, webChatElement);

__tests__/html/accessibility.adaptiveCard.withoutTapAction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
run(async function () {
1414
const store = testHelpers.createStore();
1515
const directLine = WebChat.createDirectLine({ token: await testHelpers.token.fetchDirectLineToken() });
16-
const baseProps = { directLine, store };
16+
const baseProps = { directLine, store, styleOptions: { subtle: '#666' } };
1717
const webChatElement = document.getElementById('webchat');
1818

1919
WebChat.renderWebChat(baseProps, webChatElement);

__tests__/html/adaptiveCards.tapAction.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
WebChat.renderWebChat(
4141
{
4242
directLine,
43-
store: testHelpers.createStore()
43+
store: testHelpers.createStore(),
44+
styleOptions: { subtle: '#666' }
4445
},
4546
document.getElementById('webchat')
4647
);

__tests__/html/autoScroll.acknowledgement.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
{
8787
directLine,
8888
store,
89-
styleOptions: { autoScrollSnapOnPage: true }
89+
styleOptions: {
90+
autoScrollSnapOnPage: true,
91+
subtle: '#666'
92+
}
9093
},
9194
webChatElement
9295
);

__tests__/html/autoScroll.snap.activity.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
store,
6363
styleOptions: {
6464
autoScrollSnapOnActivity: 2,
65-
autoScrollSnapOnActivityOffset: 100
65+
autoScrollSnapOnActivityOffset: 100,
66+
subtle: '#666'
6667
}
6768
},
6869
webChatElement

__tests__/html/autoScroll.snap.activityAndPage.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
styleOptions: {
6464
autoScrollSnapOnActivity: true,
6565
autoScrollSnapOnPage: true,
66-
autoScrollSnapOnPageOffset: -100
66+
autoScrollSnapOnPageOffset: -100,
67+
subtle: '#666'
6768
}
6869
},
6970
webChatElement

__tests__/html/autoScroll.snap.default.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@
5656
run(async function () {
5757
const webChatElement = document.getElementById('webchat');
5858

59-
WebChat.renderWebChat({ directLine, store }, webChatElement);
59+
WebChat.renderWebChat(
60+
{
61+
directLine,
62+
store,
63+
styleOptions: { subtle: '#666' }
64+
},
65+
webChatElement
66+
);
6067

6168
await pageConditions.uiConnected();
6269

__tests__/html/autoScroll.snap.page.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@
6060
{
6161
directLine,
6262
store,
63-
styleOptions: { autoScrollSnapOnPage: 0.2 }
63+
styleOptions: {
64+
autoScrollSnapOnPage: 0.2,
65+
subtle: '#666'
66+
}
6467
},
6568
webChatElement
6669
);

__tests__/html/focusManagement.disableAdaptiveCard.manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
run(async function () {
1414
const store = testHelpers.createStore();
1515
const directLine = WebChat.createDirectLine({ token: await testHelpers.token.fetchDirectLineToken() });
16-
const baseProps = { directLine, store };
16+
const baseProps = { directLine, store, styleOptions: { subtle: '#666' } };
1717
const webChatElement = document.getElementById('webchat');
1818

1919
WebChat.renderWebChat(baseProps, webChatElement);

0 commit comments

Comments
 (0)