Skip to content

Commit

Permalink
Merge branch 'release-1.26.142'
Browse files Browse the repository at this point in the history
* release-1.26.142:
  Bumping version to 1.26.142
  Add changelog entries from botocore
  Keyboard Accessibility Improvements (#3723)
  • Loading branch information
aws-sdk-python-automation committed May 26, 2023
2 parents be9e52d + d2dc09f commit 436b08c
Show file tree
Hide file tree
Showing 10 changed files with 404 additions and 117 deletions.
22 changes: 22 additions & 0 deletions .changes/1.26.142.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"category": "``Polly``",
"description": "[``botocore``] Remove `Content-Type` header from ``synthesize_speech`` URL presigning.",
"type": "bugfix"
},
{
"category": "``connect``",
"description": "[``botocore``] Documentation update for a new Initiation Method value in DescribeContact API",
"type": "api-change"
},
{
"category": "``iotwireless``",
"description": "[``botocore``] Add Multicast Group support in Network Analyzer Configuration.",
"type": "api-change"
},
{
"category": "``sagemaker``",
"description": "[``botocore``] Added ml.p4d and ml.inf1 as supported instance type families for SageMaker Notebook Instances.",
"type": "api-change"
}
]
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
CHANGELOG
=========

1.26.142
========

* bugfix:``Polly``: [``botocore``] Remove `Content-Type` header from ``synthesize_speech`` URL presigning.
* api-change:``connect``: [``botocore``] Documentation update for a new Initiation Method value in DescribeContact API
* api-change:``iotwireless``: [``botocore``] Add Multicast Group support in Network Analyzer Configuration.
* api-change:``sagemaker``: [``botocore``] Added ml.p4d and ml.inf1 as supported instance type families for SageMaker Notebook Instances.


1.26.141
========

Expand Down
2 changes: 1 addition & 1 deletion boto3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from boto3.session import Session

__author__ = 'Amazon Web Services'
__version__ = '1.26.141'
__version__ = '1.26.142'


# The default Boto3 session; autoloaded when needed.
Expand Down
70 changes: 58 additions & 12 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,66 @@ h1, code, li {
.sidebar-logo{
padding: 20% 15%;
}

/* Hides a div by default. */
.show-div-sm {
display: none;
}
/* Hides a div by default. */
.show-div-md {
display: none;
}
/* Positions items starting from the right. */
.justify-content-right {
justify-content: right;
}
/* Positions items starting from the left. */
.justify-content-left {
justify-content: left;
}
/* Hides the sidebar and prevents keyboard users from focusing on elements. */
.hide-sidebar {
visibility: hidden;
}
/* Hides the icon by default and applies relevant styling. */
.nav-close-icon{
color: var(--color-foreground-secondary);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
/* Safeguard for ensuring menus are always visible on larger screens. */
@media (min-width: 82em) {
.hide-sidebar {
visibility: visible;
}
}
/* We only want to show the close-icon on medium-small screens. */
@media (max-width: 67em) {
/* Displays a div on a small screen. */
.show-div-sm {
display: flex;
}
}
@media (max-width: 82em) {
/* Displays a div on a medium screen. */
.show-div-md {
display: flex;
}
}
/* Apply furo styled admonition titles for <h3>. */
h3.admonition-title {
position: relative;
margin: 0 -0.5rem 0.5rem;
padding-left: 2.5rem;
padding-right: .5rem;
padding-top: .4rem;
padding-bottom: .4rem;
font-weight: 700;
font-size: 1.5em;
line-height: 1.25;
border-radius: unset;
background-color: var(--color-admonition-title-background);
position: relative;
margin: 0 -0.5rem 0.5rem;
padding-left: 2.5rem;
padding-right: .5rem;
padding-top: .4rem;
padding-bottom: .4rem;
font-weight: 700;
font-size: 1.5em;
line-height: 1.25;
border-radius: unset;
background-color: var(--color-admonition-title-background);
}
/* Apply furo styled admonition icons before <h3>. */
h3.admonition-title::before {
Expand Down
72 changes: 72 additions & 0 deletions docs/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,82 @@ function makeCodeBlocksScrollable() {
codeCell.tabIndex = 0;
});
}
// Determines which of the two table-of-contents menu labels is visible.
function determineVisibleTocOpenMenu() {
const mediaQuery = window.matchMedia('(max-width: 67em)');
return mediaQuery.matches ? 'toc-menu-open-sm' : 'toc-menu-open-md';
}

// A mapping of current to next focus id's. For example, We want a corresponsing
// menu's close button to be highlighted after a menu is opened with a keyboard.
const NEXT_FOCUS_ID_MAP = {
'nav-menu-open': 'nav-menu-close',
'nav-menu-close': 'nav-menu-open',
'toc-menu-open-sm': 'toc-menu-close',
'toc-menu-open-md': 'toc-menu-close',
'toc-menu-close': determineVisibleTocOpenMenu(),
};

// Toggles the visibility of a sidebar menu to prevent keyboard focus on hidden elements.
function toggleSidebarMenuVisibility(elementQuery, inputQuery) {
const sidebarElement = document.querySelector(elementQuery);
const sidebarInput = document.querySelector(inputQuery);
sidebarInput.addEventListener('change', () => {
setTimeout(
() => {
sidebarElement.classList.toggle('hide-sidebar', !sidebarInput.checked);
},
sidebarInput.checked ? 0 : 250,
);
});
window.matchMedia('(max-width: 67em)').addEventListener('change', (event) => {
NEXT_FOCUS_ID_MAP['toc-menu-close'] = determineVisibleTocOpenMenu();
if (!event.matches) {
document
.querySelector('.sidebar-drawer')
.classList.remove('hide-sidebar');
}
});
window.matchMedia('(max-width: 82em)').addEventListener('change', (event) => {
if (!event.matches) {
document.querySelector('.toc-drawer').classList.remove('hide-sidebar');
}
});
}

// Activates labels when a user focuses on them and clicks "Enter".
// Also highlights the next appropriate input label.
function activateLabelOnEnter() {
const labels = document.querySelectorAll('label');
labels.forEach((element) => {
element.setAttribute('tabindex', '0');
element.addEventListener('keypress', (event) => {
if (event.key === 'Enter') {
const targetId = element.getAttribute('for');
document.getElementById(targetId).click();
const nextFocusId = NEXT_FOCUS_ID_MAP[element.id];
if (nextFocusId) {
// Timeout is needed to let the label become visible.
setTimeout(() => {
document.getElementById(nextFocusId).focus();
}, 250);
}
}
});
});
}

// Improves accessibility for keyboard-only users.
function setupKeyboardFriendlyNavigation() {
activateLabelOnEnter();
toggleSidebarMenuVisibility('.toc-drawer', '#__toc');
toggleSidebarMenuVisibility('.sidebar-drawer', '#__navigation');
}
// Functions to run after the DOM loads.
function runAfterDOMLoads() {
expandSubMenu();
makeCodeBlocksScrollable();
setupKeyboardFriendlyNavigation();
}
// Run a function after the DOM loads.
function ready(fn) {
Expand Down
Loading

0 comments on commit 436b08c

Please sign in to comment.