Children's nightwear is being recalled after failing to comply with mandatory consumer product safety standards.